Class: Tracer
- Inherits:
-
Object
- Object
- Tracer
- Defined in:
- lib/tracer.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #disable ⇒ Object
- #enable ⇒ Object
-
#initialize(options = {}) ⇒ Tracer
constructor
A new instance of Tracer.
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( = {}) = @trace = build_tracer @path = [] @data = [] end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/tracer.rb', line 4 def data @data end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/tracer.rb', line 4 def path @path end |
Instance Method Details
#disable ⇒ Object
17 18 19 |
# File 'lib/tracer.rb', line 17 def disable @trace.disable end |
#enable ⇒ Object
13 14 15 |
# File 'lib/tracer.rb', line 13 def enable @trace.enable end |