Module: IRB::InputCompletor

Defined in:
lib/breakpoint.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.eval(code, context, *more) ⇒ Object



525
526
527
528
529
530
# File 'lib/breakpoint.rb', line 525

def self.eval(code, context, *more)
  # Big hack, this assumes that InputCompletor
  # will only call eval() when it wants code
  # to be executed in the IRB context.
  IRB.conf[:MAIN_CONTEXT].workspace.evaluate(:no_proxy, code, *more)
end