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:
parent
4268084d69
commit
b40e925c92
1 changed files with 1 additions and 0 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue