summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-20 19:54:56 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-20 19:54:56 +0000
commit0e633168e14a1f6cd7e49d91947a70fad88f7a5a (patch)
tree0bde939c78ad3713b76a928b18e762237700641f
parentd7a68274c728ce382bbe541bec68554b00dec3c8 (diff)
downloadruby-0e633168e14a1f6cd7e49d91947a70fad88f7a5a.tar.gz
ruby-0e633168e14a1f6cd7e49d91947a70fad88f7a5a.tar.xz
ruby-0e633168e14a1f6cd7e49d91947a70fad88f7a5a.zip
fix sharing_detection.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/pp.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/pp.rb b/lib/pp.rb
index 7456ba12c..94a5aa18b 100644
--- a/lib/pp.rb
+++ b/lib/pp.rb
@@ -414,6 +414,14 @@ class Object
include PP::ObjectMixin
end
+[Numeric, Symbol, FalseClass, TrueClass, NilClass, Module].each {|c|
+ c.class_eval {
+ def pretty_print_cycle(pp)
+ pp.text inspect
+ end
+ }
+}
+
if __FILE__ == $0
require 'runit/testcase'
require 'runit/cui/testrunner'