aboutsummaryrefslogtreecommitdiffstats
path: root/lib/pp.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-08 07:54:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-08 07:54:34 +0000
commit216a50575199129b1e40361ccce60b992ec3b05b (patch)
tree3b58e14c550733587de55b22b4f250b25afecf4f /lib/pp.rb
parent5e947e2d03657d87594ff77c5492b21065950635 (diff)
downloadruby-216a50575199129b1e40361ccce60b992ec3b05b.tar.gz
wrong commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/pp.rb')
-rw-r--r--lib/pp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pp.rb b/lib/pp.rb
index 8176e2d6ac..3647297cfb 100644
--- a/lib/pp.rb
+++ b/lib/pp.rb
@@ -193,7 +193,7 @@ class PP < PrettyPrint
end
def object_address_group(obj, &block)
- group(1, sprintf('#<%s:0x%.x', obj.class.to_s, obj.__id__ * 2), '>', &block)
+ group(1, "\#<#{obj.class}:#{("0x%x" % (obj.__id__ * 2)).sub(/\.\.f/, '')}", '>', &block)
end
def comma_breakable