[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:
parent
4268084d69
commit
b40e925c92
@ -113,6 +113,7 @@ module IRB # :nodoc:
|
|||||||
result
|
result
|
||||||
rescue NoMethodError
|
rescue NoMethodError
|
||||||
puts "(Object doesn't support #inspect)"
|
puts "(Object doesn't support #inspect)"
|
||||||
|
''
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
Inspector.def_inspector([:pp, :pretty_inspect], proc{require "pp"}){|v|
|
Inspector.def_inspector([:pp, :pretty_inspect], proc{require "pp"}){|v|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user