class Pry::CommandProcessor::Result

result IS a command and what kind of command (e.g void)
Wraps the return result of process_commands, indicates if the

def command?

Returns:
  • (Boolean) -
def command?
  @is_command
end

def initialize(is_command, keep_retval = false, retval = nil)

def initialize(is_command, keep_retval = false, retval = nil)
  @is_command, @keep_retval, @retval = is_command, keep_retval, retval
end

def keep_retval?

Returns:
  • (Boolean) -
def keep_retval?
  @keep_retval
end

def void_command?

Returns:
  • (Boolean) -
def void_command?
  (command? && !keep_retval?) || retval == CommandContext::VOID_VALUE
end