Class: IRB::ExtendCommand::DexcFrame

Inherits:
Nop
  • Object
show all
Defined in:
lib/dexc/irb/cmd/stack_explorer.rb

Instance Method Summary collapse

Instance Method Details

#execute(idx = nil) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/dexc/irb/cmd/stack_explorer.rb', line 9

def execute(idx = nil)
  if idx
    irb_context.dexc_change_frame(idx)
    STDOUT.print(irb_context.workspace.code_around_binding)
  end
  irb_context.dexc_print_frame
  irb_context.main
end