module Ripl::ShortErrors
Constants
- VERSION
Attributes
last_error[R]
Public Instance Methods
format_error(err)
click to toggle source
# File lib/ripl/short_errors.rb, line 17 def format_error(err) "#{err.class}: #{err.message.chomp}" + ( err.backtrace.first =~ %r|/lib/ripl/shell.rb| ? '' : " [#{err.backtrace.first}]" ) end
print_eval_error(err)
click to toggle source
Calls superclass method
# File lib/ripl/short_errors.rb, line 22 def print_eval_error(err) @last_error = err super end