evaluate(line, line_no, exception: nil) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

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
Register or log in to add new notes.