module Console1984::Ext::Irb::Context
Extends IRB execution contexts to hijack execution attempts and pass them through Console1984
.
Public Instance Methods
evaluate(line, line_no, exception: nil)
click to toggle source
Calls superclass method
# File lib/console1984/ext/irb/context.rb, line 15 def evaluate(line, line_no, exception: nil) Console1984.command_executor.execute(Array(line)) do super end end
inspect_last_value()
click to toggle source
This method is invoked for showing returned objects in the console Overridden to make sure their evaluation is supervised.
Calls superclass method
# File lib/console1984/ext/irb/context.rb, line 8 def inspect_last_value Console1984.command_executor.execute_in_protected_mode do super end end