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:
parent
97c28898e1
commit
0274295432
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue