Class: CLI::DSL::Option
- Defined in:
- lib/cli/dsl.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods included from Cast
Methods included from Value
Methods inherited from Switch
#has_short?, #initialize, #short, #switch, #switch_short, #to_s
Methods included from Description
Methods inherited from Base
Constructor Details
This class inherits a constructor from CLI::DSL::Switch
Instance Method Details
#mandatory? ⇒ Boolean
151 152 153 |
# File 'lib/cli/dsl.rb', line 151 def mandatory? not has_default? and @options[:required] end |
#multiple? ⇒ Boolean
155 156 157 |
# File 'lib/cli/dsl.rb', line 155 def multiple? false end |