Class: Bulldogger::Probe::Target

Inherits:
Struct
  • Object
show all
Defined in:
lib/bulldogger/probe/target.rb

Overview

One resolved probe target: the label the caller wrote ("Klass#method" / "Klass.method") paired with the UnboundMethod TracePoint#enable(target:) actually needs. Kept as a plain value object so Session and Writer never re-derive the label from the method (an UnboundMethod alone can't tell instance and singleton spelling apart) or re-run constant/method lookup after start.

Instance Attribute Summary collapse

Instance Attribute Details

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



11
12
13
# File 'lib/bulldogger/probe/target.rb', line 11

def label
  @label
end

#unbound_methodObject

Returns the value of attribute unbound_method

Returns:

  • (Object)

    the current value of unbound_method



11
12
13
# File 'lib/bulldogger/probe/target.rb', line 11

def unbound_method
  @unbound_method
end