Class: RightSupport::Notifier::Utility::BacktraceDecoder::Frame
- Defined in:
- lib/right_support/notifiers/utilities/backtrace_decoder.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#function ⇒ Object
readonly
Returns the value of attribute function.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(file, line, function) ⇒ Frame
constructor
A new instance of Frame.
- #to_s ⇒ Object
Constructor Details
#initialize(file, line, function) ⇒ Frame
Returns a new instance of Frame.
46 47 48 49 50 |
# File 'lib/right_support/notifiers/utilities/backtrace_decoder.rb', line 46 def initialize(file, line, function) @file = file @line = line @function = function end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
44 45 46 |
# File 'lib/right_support/notifiers/utilities/backtrace_decoder.rb', line 44 def file @file end |
#function ⇒ Object (readonly)
Returns the value of attribute function.
44 45 46 |
# File 'lib/right_support/notifiers/utilities/backtrace_decoder.rb', line 44 def function @function end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
44 45 46 |
# File 'lib/right_support/notifiers/utilities/backtrace_decoder.rb', line 44 def line @line end |
Instance Method Details
#to_s ⇒ Object
52 53 54 55 |
# File 'lib/right_support/notifiers/utilities/backtrace_decoder.rb', line 52 def to_s # the following encoded format is the ruby style (strange quotes, etc.) "#{@file}:#{@line}:in `#{@function}'" end |