Class: Tracer

Inherits:
Object
  • Object
show all
Defined in:
lib/tracer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTracer

Returns a new instance of Tracer.



4
5
6
7
8
# File 'lib/tracer.rb', line 4

def initialize
  @trace = build_tracer
  @path = []
  @data = []
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



2
3
4
# File 'lib/tracer.rb', line 2

def data
  @data
end

#pathObject (readonly)

Returns the value of attribute path.



2
3
4
# File 'lib/tracer.rb', line 2

def path
  @path
end

Instance Method Details

#disableObject



14
15
16
# File 'lib/tracer.rb', line 14

def disable
  @trace.disable
end

#enableObject



10
11
12
# File 'lib/tracer.rb', line 10

def enable
  @trace.enable
end