diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-16 03:32:40 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-16 03:32:40 +0000 |
| commit | f25ecc6b877f6bbc0442ad5f02feb44f96217be4 (patch) | |
| tree | 2cae708733fef404f548f263b9110a837f631709 /lib | |
| parent | 61e904f6600b3bf92ff29f0fff1afc3ed11759fc (diff) | |
| download | ruby-f25ecc6b877f6bbc0442ad5f02feb44f96217be4.tar.gz ruby-f25ecc6b877f6bbc0442ad5f02feb44f96217be4.tar.xz ruby-f25ecc6b877f6bbc0442ad5f02feb44f96217be4.zip | |
* lib/pp.rb (object_address_group): use to_s instead of name
to get name of class.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/pp.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
