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 ⇒ Tracer
constructor
A new instance of Tracer.
Constructor Details
#initialize ⇒ Tracer
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
2 3 4 |
# File 'lib/tracer.rb', line 2 def data @data end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
2 3 4 |
# File 'lib/tracer.rb', line 2 def path @path end |
Instance Method Details
#disable ⇒ Object
14 15 16 |
# File 'lib/tracer.rb', line 14 def disable @trace.disable end |
#enable ⇒ Object
10 11 12 |
# File 'lib/tracer.rb', line 10 def enable @trace.enable end |