зеркало из https://github.com/github/ruby.git
* 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:
Родитель
38ceb49b79
Коммит
0eeff37f94
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче