mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix sharing_detection.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d0ea0b4a8d
commit
c2dbfe53fc
1 changed files with 8 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue