Methods
Constants
INIT_STACK_TIMES | = | 3 |
Default number of stack frames |
||
CALL_STACK_OFFSET | = | 3 |
Default number of frames offset |
Class Public methods
new()
Link
Creates a new stack frame
sender()
Link
Returns the binding context of the caller from the last frame initialized
Instance Public methods
bottom(n = 0)
Link
Returns the n
number of frames on the call stack from the
first frame initialized.
Raises FrameOverflow if there are no frames in the given stack range.
top(n = 0)
Link
Returns the n
number of frames on the call stack from the last
frame initialized.
Raises FrameUnderflow if there are no frames in the given stack range.
trace_func(event, file, line, id, binding)
Link
Used by Kernel#set_trace_func to register each event in the call stack