mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/pp.rb (object_address_group): use to_s instead of name
to get name of class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
38ceb49b79
commit
0eeff37f94
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Mar 16 12:29:55 2003 Tanaka Akira <akr@m17n.org>
|
||||
|
||||
* lib/pp.rb (object_address_group): use to_s instead of name
|
||||
to get name of class.
|
||||
|
||||
Wed Mar 12 16:48:19 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* io.c (prep_stdio): set binmode only if the file descriptor
|
||||
|
|
|
@ -190,7 +190,7 @@ class PP < PrettyPrint
|
|||
end
|
||||
|
||||
def object_address_group(obj, &block)
|
||||
group(1, sprintf('#<%s:0x%x', obj.class.name, obj.__id__ * 2), '>', &block)
|
||||
group(1, sprintf('#<%s:0x%x', obj.class.to_s, obj.__id__ * 2), '>', &block)
|
||||
end
|
||||
|
||||
def comma_breakable
|
||||
|
|
Loading…
Reference in a new issue