1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

fix Pry.view_clip().

before:
[3] pry(main)> Pry.view_clip(_pry_)
=> "#<Pry>"

after:
[19] pry(main)> Pry.view_clip(_pry_)
=> "#<Pry:7f97e16d7bc8>"
This commit is contained in:
Robert Gleeson 2014-03-16 05:38:41 +01:00
parent 97c28898e1
commit 0274295432

View file

@ -174,7 +174,7 @@ class Pry
elsif Pry.config.prompt_safe_objects.any? { |v| v === obj } && obj.inspect.length <= max_length
obj.inspect
else
"#<#{obj.class}>"#:%x>"# % (obj.object_id << 1)
"#<#{obj.class}>:%x>" % (obj.object_id << 1)
end
rescue RescuableException