Class | IRB::Frame |
In: |
lib/irb/frame.rb
|
Parent: | Object |
INIT_STACK_TIMES | = | 3 |
CALL_STACK_OFFSET | = | 3 |
singleton functions
# File lib/irb/frame.rb, line 50 50: def Frame.bottom(n = 0) 51: @backtrace.bottom(n) 52: end
# File lib/irb/frame.rb, line 24 24: def initialize 25: @frames = [TOPLEVEL_BINDING] * INIT_STACK_TIMES 26: end
# File lib/irb/frame.rb, line 43 43: def bottom(n = 0) 44: bind = @frames[n] 45: Fail FrameOverflow unless bind 46: bind 47: end
# File lib/irb/frame.rb, line 37 37: def top(n = 0) 38: bind = @frames[-(n + CALL_STACK_OFFSET)] 39: Fail FrameUnderflow unless bind 40: bind 41: end