Athena::Console::Input
Inherits Athena::Console::Input::Streamable / Athena::Console::Input::Interface / Reference / Object
Common base implementation of ACON::Input::Interface.
Constructors
Instance methods
Returns the value of the argument with the provided name converted to the desired type.
This method is preferred over #argument since it provides better typing.
Raises an ACON::Exception::Logic if the actual argument value could not be converted to a type.
Returns the raw string value of the argument with the provided name, or nil if is optional and was not provided.
Binds the provided definition to self.
Essentially provides what should be parsed from self.
Escapes a token via Process.quote if it contains unsafe characters.
Returns true if self has an argument with the provided name, otherwise false.
Returns true if self has an option with the provided name, otherwise false.
Returns the value of the option with the provided name converted to the desired type.
This method is preferred over #option since it provides better typing.
Raises an ACON::Exception::Logic if the actual option value could not be converted to a type.
Returns the raw string value of the option with the provided name, or nil if is optional and was not provided.
Sets the value of the argument with the provided name.
Sets the value of the option with the provided name.
Validates the input, asserting all of the required parameters are provided.
Raises ACON::Exception::Runtime when not enough arguments are given.