1
0
Fork 0
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:
John Mair 2011-07-26 01:06:57 +12:00
parent 8c444ba4f1
commit 6a70c7a3fd

View file

@ -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