method
evaluate
evaluate(line, line_no, exception: nil)
public
Hide source
# File lib/irb/context.rb, line 379 def evaluate(line, line_no, exception: nil) # :nodoc: @line_no = line_no if exception line = "begin ::Kernel.raise _; rescue _.class; #{line}; end" @workspace.local_variable_set(:_, exception) end set_last_value(@workspace.evaluate(self, line, irb_path, line_no)) end