Class: UML::LowlevelBacktracer
- Inherits:
-
Object
- Object
- UML::LowlevelBacktracer
- Includes:
- Observable, Singleton
- Defined in:
- lib/uml/lowlevel_backtracer.rb
Instance Attribute Summary collapse
-
#call_stack ⇒ Object
readonly
Returns the value of attribute call_stack.
Instance Method Summary collapse
-
#initialize ⇒ LowlevelBacktracer
constructor
A new instance of LowlevelBacktracer.
Constructor Details
#initialize ⇒ LowlevelBacktracer
Returns a new instance of LowlevelBacktracer.
12 13 14 15 |
# File 'lib/uml/lowlevel_backtracer.rb', line 12 def initialize @call_stack = [] set_trace_func method(:tracer).to_proc end |
Instance Attribute Details
#call_stack ⇒ Object (readonly)
Returns the value of attribute call_stack.
10 11 12 |
# File 'lib/uml/lowlevel_backtracer.rb', line 10 def call_stack @call_stack end |