Class: Zold::Backtrace
- Inherits:
-
Object
- Object
- Zold::Backtrace
- Defined in:
- lib/zold/backtrace.rb
Overview
Backtrace of an exception
Instance Method Summary collapse
-
#initialize(error) ⇒ Backtrace
constructor
A new instance of Backtrace.
- #to_s ⇒ Object
Constructor Details
#initialize(error) ⇒ Backtrace
Returns a new instance of Backtrace.
28 29 30 |
# File 'lib/zold/backtrace.rb', line 28 def initialize(error) @error = error end |
Instance Method Details
#to_s ⇒ Object
32 33 34 |
# File 'lib/zold/backtrace.rb', line 32 def to_s "#{@error.class.name}: #{@error.}\n#{@error.backtrace.join("\n\t")}" end |