From c2dbfe53fc1d34b3c38172bda2a801fc60f26e66 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 20 Jan 2003 19:54:56 +0000 Subject: fix sharing_detection. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/pp.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/pp.rb') diff --git a/lib/pp.rb b/lib/pp.rb index 7456ba12c3..94a5aa18b5 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' -- cgit v1.2.3