Class: Errplane::Backtrace::Line
- Inherits:
-
Object
- Object
- Errplane::Backtrace::Line
- Defined in:
- lib/errplane/backtrace.rb
Constant Summary collapse
- FORMAT =
%r{^((?:[a-zA-Z]:)?[^:]+):(\d+)(?::in `([^']+)')?$}.freeze
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(line) ⇒ Line
constructor
A new instance of Line.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
6 7 8 |
# File 'lib/errplane/backtrace.rb', line 6 def file @file end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
8 9 10 |
# File 'lib/errplane/backtrace.rb', line 8 def method @method end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
7 8 9 |
# File 'lib/errplane/backtrace.rb', line 7 def number @number end |
Instance Method Details
#inspect ⇒ Object
18 19 20 |
# File 'lib/errplane/backtrace.rb', line 18 def inspect "<Line: #{to_s}>" end |
#to_s ⇒ Object
14 15 16 |
# File 'lib/errplane/backtrace.rb', line 14 def to_s "#{file}:#{number} in `#{method}'" end |