Class: DocoptNG::Command
- Inherits:
-
Argument
- Object
- Pattern
- ChildPattern
- Argument
- DocoptNG::Command
- Defined in:
- lib/docopt_ng/command.rb
Instance Attribute Summary
Attributes inherited from ChildPattern
Attributes inherited from Pattern
Instance Method Summary collapse
-
#initialize(name, value = false) ⇒ Command
constructor
A new instance of Command.
- #single_match(left) ⇒ Object
Methods inherited from Argument
Methods inherited from ChildPattern
Methods inherited from Pattern
#==, #dump, #either, #fix, #fix_identities, #fix_repeating_arguments, #to_str
Constructor Details
#initialize(name, value = false) ⇒ Command
Returns a new instance of Command.
5 6 7 8 |
# File 'lib/docopt_ng/command.rb', line 5 def initialize(name, value = false) @name = name @value = value end |