Class: Kafo::AppOption::Definition
- Inherits:
-
Clamp::Option::Definition
- Object
- Clamp::Option::Definition
- Kafo::AppOption::Definition
- Defined in:
- lib/kafo/app_option/definition.rb
Instance Method Summary collapse
- #advanced? ⇒ Boolean
-
#initialize(switches, type, description, options = {}) ⇒ Definition
constructor
A new instance of Definition.
Constructor Details
#initialize(switches, type, description, options = {}) ⇒ Definition
Returns a new instance of Definition.
4 5 6 7 |
# File 'lib/kafo/app_option/definition.rb', line 4 def initialize(switches, type, description, = {}) @advanced = .fetch(:advanced, false) super(switches, type, description, ) end |
Instance Method Details
#advanced? ⇒ Boolean
9 10 11 |
# File 'lib/kafo/app_option/definition.rb', line 9 def advanced? @advanced end |