Exception: StandardError
- Defined in:
- lib/golly-utils/ruby_ext/pretty_error_messages.rb
Instance Method Summary collapse
-
#to_pretty_s ⇒ String
Creates a string that provides more information (a backtrace) than the default
to_smethod.
Instance Method Details
#to_pretty_s ⇒ String
Creates a string that provides more information (a backtrace) than the default to_s method.
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 |