class ErrorData::Backtrace
Public Class Methods
parse(backtrace)
click to toggle source
# File lib/error_data/error_data/backtrace.rb, line 29 def self.parse(backtrace) instance = new backtrace.each do |frame| instance.add_frame(Frame.parse(frame)) end instance end
Public Instance Methods
add_frame(frame)
click to toggle source
# File lib/error_data/error_data/backtrace.rb, line 7 def add_frame(frame) frames << frame self end
Also aliased as: <<
each(&blk)
click to toggle source
# File lib/error_data/error_data/backtrace.rb, line 13 def each(&blk) frames.each &blk end
text_frames()
click to toggle source
# File lib/error_data/error_data/backtrace.rb, line 17 def text_frames frames.map do |frame| frame.to_s end end
to_a()
click to toggle source
# File lib/error_data/error_data/backtrace.rb, line 23 def to_a frames.map do |frame| frame.to_h end end