Class: Xf::TraceKeyValue

Inherits:
Trace
  • Object
show all
Defined in:
lib/xf/trace_key_value.rb

Overview

Traces based on a key and a value matching. Only overrides the ‘match?` method to redefine a matched node.

Author:

  • baweaver

Since:

  • 0.1.0

Instance Method Summary collapse

Methods inherited from Trace

#get, #get_value, #set, #set!, #set_value, #set_value!

Constructor Details

#initialize(trace_key, trace_value) ⇒ TraceKeyValue

Returns a new instance of TraceKeyValue.

Since:

  • 0.1.0



9
10
11
12
# File 'lib/xf/trace_key_value.rb', line 9

def initialize(trace_key, trace_value)
  @trace_key   = trace_key
  @trace_value = trace_value
end