Module: IRB::InputCompletor

Defined in:
lib/active_support/breakpoint.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

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



500
501
502
503
504
505
# File 'lib/active_support/breakpoint.rb', line 500

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