lib/pry-moves/formatter.rb in pry-moves-1.0.3 vs lib/pry-moves/formatter.rb in pry-moves-1.0.4
- old
+ new
@@ -38,10 +38,14 @@
"#{meth_obj.name}(#{args.join(', ')})"
end
end
def format_arg binding, arg_name
- arg = binding.eval(arg_name.to_s)
+ arg = begin
+ binding.eval(arg_name.to_s)
+ rescue Exception
+ "?"
+ end
format_obj arg
end
def first_line str
str.split("\n").first
\ No newline at end of file