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.



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

def initialize(options = {})
  @options = options
  @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



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

def disable
  @trace.disable
end

#enableObject



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

def enable
  @trace.enable
end