Class: Tracer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Tracer

Returns a new instance of Tracer.



6
7
8
9
10
11
# File 'lib/tracer.rb', line 6

def initialize(options = {})
  @options = options
  @trace = build_tracer
  @path = []
  @data = []
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



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

def data
  @data
end

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end

Instance Method Details

#disableObject



17
18
19
# File 'lib/tracer.rb', line 17

def disable
  @trace.disable
end

#enableObject



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

def enable
  @trace.enable
end