Class: CLI::Arguments
- Inherits:
-
Array
- Object
- Array
- CLI::Arguments
- Defined in:
- lib/cli/arguments.rb
Instance Method Summary collapse
Instance Method Details
#has?(argument_dsl) ⇒ Boolean
2 3 4 |
# File 'lib/cli/arguments.rb', line 2 def has?(argument_dsl) self.find{|a| a.name == argument_dsl.name} end |
#mandatory ⇒ Object
6 7 8 |
# File 'lib/cli/arguments.rb', line 6 def mandatory select{|a| a.mandatory?} end |
#multiary ⇒ Object
10 11 12 |
# File 'lib/cli/arguments.rb', line 10 def multiary select{|a| a.multiary?} end |