Class: RightSupport::Notifier::Utility::BacktraceDecoder::Frame

Inherits:
Object
  • Object
show all
Defined in:
lib/right_support/notifiers/utilities/backtrace_decoder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fileObject (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

#functionObject (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

#lineObject (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_sObject



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