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

[ruby/irb] Fix error when inspect is called but not found in inspector

https://github.com/ruby/irb/commit/ce6d53e6d9
This commit is contained in:
Masataka Pocke Kuwabara 2020-06-10 22:01:57 +09:00 committed by aycabta
parent 4268084d69
commit b40e925c92

View file

@ -113,6 +113,7 @@ module IRB # :nodoc:
result
rescue NoMethodError
puts "(Object doesn't support #inspect)"
''
end
}
Inspector.def_inspector([:pp, :pretty_inspect], proc{require "pp"}){|v|