Class HoptoadNotifier::Backtrace::Line
In: lib/hoptoad_notifier/backtrace.rb
Parent: Object

Handles backtrace parsing line by line

Methods

==   inspect   new   parse   to_s  

Constants

INPUT_FORMAT = %r{^((?:[a-zA-Z]:)?[^:]+):(\d+)(?::in `([^']+)')?$}.freeze   regexp (optionnally allowing leading X: for windows support)

Attributes

file  [R]  The file portion of the line (such as app/models/user.rb)
file  [W] 
method  [R]  The method of the line (such as index)
method  [W] 
number  [R]  The line number portion of the line
number  [W] 

Public Class methods

Parses a single line of a given backtrace @param [String] unparsed_line The raw line from caller or some backtrace @return [Line] The parsed backtrace line

Public Instance methods

Reconstructs the line in a readable fashion

[Validate]