Class: Radar::Backtrace

Inherits:
Array
  • Object
show all
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

Instance Method Summary collapse

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

#originalObject (readonly)

Returns the value of attribute original.



6
7
8
# File 'lib/radar/backtrace.rb', line 6

def original
  @original
end