Module: IRB

Defined in:
lib/tins/xt/irb.rb

Class Method Summary collapse

Class Method Details

.examine(binding = TOPLEVEL_BINDING) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/tins/xt/irb.rb', line 7

def self.examine(binding = TOPLEVEL_BINDING)
  setup nil
  workspace = WorkSpace.new binding
  irb = Irb.new workspace
  @CONF[:MAIN_CONTEXT] = irb.context
  catch(:IRB_EXIT) { irb.eval_input }
rescue Interrupt
  exit
end