Class: Radar::Backtrace
- Inherits:
-
Array
- Object
- Array
- Radar::Backtrace
- Defined in:
- lib/radar/backtrace.rb
Overview
The backtrace class helps to parse the given Ruby backtrace lines into proper file, line, and method, so it can better be organized and filtered later.
Defined Under Namespace
Classes: Entry
Instance Attribute Summary collapse
-
#original ⇒ Object
readonly
Returns the value of attribute original.
Instance Method Summary collapse
-
#initialize(backtrace) ⇒ Backtrace
constructor
A new instance of Backtrace.
Constructor Details
#initialize(backtrace) ⇒ Backtrace
Returns a new instance of Backtrace.
8 9 10 11 |
# File 'lib/radar/backtrace.rb', line 8 def initialize(backtrace) @original = backtrace parse if backtrace end |
Instance Attribute Details
#original ⇒ Object (readonly)
Returns the value of attribute original.
6 7 8 |
# File 'lib/radar/backtrace.rb', line 6 def original @original end |