Module: IRB::InputCompletor

Defined in:
lib/active_support/breakpoint.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

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



495
496
497
498
499
500
# File 'lib/active_support/breakpoint.rb', line 495

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