class MissingValueError
Raised when a required value is missing.
Definitions
def initialize(command, field)
Initialize a new missing value error.
Signature
-
parameter
command
Command
The command that encountered the error.
-
parameter
field
Symbol
The name of the missing field.
Implementation
def initialize(command, field)
@command = command
@field = field
super "#{field} is required"
end
attr :command
The command that encountered the error.
Signature
-
attribute
Command
attr :field
The name of the missing field.
Signature
-
attribute
Symbol