class ScoutApm::Utils::InstanceVar

Attributes

name[R]
obj[R]

Public Class Methods

new(name, obj, parent) click to toggle source
# File lib/scout_apm/utils/marshal_logging.rb, line 9
def initialize(name, obj, parent)
  @name = name
  @obj = obj
  @parent = parent
end

Public Instance Methods

history() click to toggle source
# File lib/scout_apm/utils/marshal_logging.rb, line 19
def history
  (@parent.nil? ? [] : @parent.history) + [to_s]
end
to_s() click to toggle source
# File lib/scout_apm/utils/marshal_logging.rb, line 15
def to_s
  "#{@name} - #{obj.class}"
end