mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/pp.rb (PP::ObjectMixin#pretty_print): use to_s regardless of
instance variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
52ebc24487
commit
4319b48ab6
3 changed files with 7 additions and 4 deletions
|
@ -107,7 +107,6 @@ class PPInspectTest < Test::Unit::TestCase
|
|||
a.instance_eval { @a = nil }
|
||||
result = PP.pp(a, '')
|
||||
assert_equal("#{a.inspect}\n", result)
|
||||
assert_match(/\A#<Object.*>\n\z/m, result)
|
||||
a = 1.0
|
||||
a.instance_eval { @a = nil }
|
||||
result = PP.pp(a, '')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue