Class: Rubikon::Flag
Overview
A flag is an application parameter without arguments
Instance Attribute Summary
Attributes included from Parameter
Instance Method Summary collapse
-
#<<(arg) ⇒ Object
private
Adds an argument to this flag.
-
#args_full? ⇒ true
private
Checks whether this flag has all required arguments supplied.
-
#more_args? ⇒ false
private
Checks whether this flag can take more arguments.
Methods included from Parameter
Instance Method Details
#<<(arg) ⇒ Object (private)
Adds an argument to this flag
28 29 30 |
# File 'lib/rubikon/flag.rb', line 28 def <<(arg) raise ExtraArgumentError.new(@name) end |
#args_full? ⇒ true (private)
Checks whether this flag has all required arguments supplied
36 37 38 |
# File 'lib/rubikon/flag.rb', line 36 def args_full? true end |
#more_args? ⇒ false (private)
Checks whether this flag can take more arguments
44 45 46 |
# File 'lib/rubikon/flag.rb', line 44 def more_args? false end |