class Pry::Result
Wraps the return result of process_commands, indicates if the result IS a command and what kind of command (e.g void)
Attributes
retval[R]
Public Class Methods
new(is_command, retval = nil)
click to toggle source
# File lib/pry/command_set.rb, line 400 def initialize(is_command, retval = nil) @is_command = is_command @retval = retval end
Public Instance Methods
command?()
click to toggle source
Is the result a command? @return [Boolean]
# File lib/pry/command_set.rb, line 407 def command? @is_command end
void_command?()
click to toggle source
Is the result a command and if it is, is it a void command? (one that does not return a value) @return [Boolean]
# File lib/pry/command_set.rb, line 414 def void_command? retval == Command::VOID_VALUE end