Exception: StandardError

Inherits:
Exception
  • Object
show all
Defined in:
lib/golly-utils/ruby_ext/pretty_error_messages.rb

Instance Method Summary collapse

Instance Method Details

#to_pretty_sString

Creates a string that provides more information (a backtrace) than the default to_s method.

Returns:

  • (String)


6
7
8
# File 'lib/golly-utils/ruby_ext/pretty_error_messages.rb', line 6

def to_pretty_s
  "#{self.inspect}\n#{self.backtrace.map{|b| "  #{b}"}.join "\n"}"
end