summaryrefslogtreecommitdiffstats
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
commit76a99b8b70debedbc2a52830420cd57aad540f3e (patch)
tree8697cbaaa1818efa35c93ed4a80f6232ed2f0595
parenta292199da4ff0dfd8fef1754177e3ee63ffc13fe (diff)
downloadruby-76a99b8b70debedbc2a52830420cd57aad540f3e.tar.gz
ruby-76a99b8b70debedbc2a52830420cd57aad540f3e.tar.xz
ruby-76a99b8b70debedbc2a52830420cd57aad540f3e.zip
wrong commit.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/pp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pp.rb b/lib/pp.rb
index 8176e2d6a..3647297cf 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