FlagClass
- Namespace
- Ancestors
-
Object
- Subclasses
-
- Switch
-
Represents an option to a Method that takes an optional argument.
Represents a boolean option to a Method that doesn’t take an argument, though an argument is actually allowed if it’s made explicit by following the option name with a ‘=’ character and the argument value. Does the potential processing of the argument or simply returns the inverse #default value of the flag.
Instance Methods
nameString#⚙
Returns the long or short name of the option.
namesArray<
String>
#⚙
Returns the long and/or short name of the option.
ignored?Boolean#⚙
Returns true if the receiver shouldn’t be included in the Hash of option names and their values.
shortString#⚙
Returns the short name of the receiver.
longString#⚙
Returns the long name of the receiver.
defaultBoolean#⚙
Returns the default value of the receiver.
descriptionString#⚙
Returns the description of the receiver.