mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
added exotic object support back in (fixed regression)
This commit is contained in:
parent
8c444ba4f1
commit
6a70c7a3fd
1 changed files with 5 additions and 1 deletions
|
@ -20,7 +20,11 @@ class Pry
|
|||
|
||||
# The default prints
|
||||
DEFAULT_PRINT = proc do |output, value|
|
||||
Helpers::BaseHelpers.stagger_output("=> #{Helpers::BaseHelpers.colorize_code(value.pretty_inspect)}", output)
|
||||
begin
|
||||
Helpers::BaseHelpers.stagger_output("=> #{Helpers::BaseHelpers.colorize_code(value.pretty_inspect)}", output)
|
||||
rescue NoMethodError
|
||||
output.puts "=> unknown"
|
||||
end
|
||||
end
|
||||
|
||||
# Will only show the first line of the backtrace
|
||||
|
|
Loading…
Reference in a new issue