Skip to content

Commit

Permalink
Fix error when inspect is called but not found in inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
pocke committed Jun 10, 2020
1 parent f87eec2 commit ce6d53e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/irb/inspector.rb
Expand Up @@ -113,6 +113,7 @@ def inspect_value(v)
result
rescue NoMethodError
puts "(Object doesn't support #inspect)"
''
end
}
Inspector.def_inspector([:pp, :pretty_inspect], proc{require "pp"}){|v|
Expand Down

0 comments on commit ce6d53e

Please sign in to comment.