Module: Kafo::AppOption::Declaration
- Includes:
- Clamp::Option::Declaration
- Included in:
- KafoConfigure
- Defined in:
- lib/kafo/app_option/declaration.rb
Instance Method Summary collapse
Instance Method Details
#app_option(switches, type, description, opts = {}, &block) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/kafo/app_option/declaration.rb', line 8 def app_option(switches, type, description, opts = {}, &block) AppOption::Definition.new(switches, type, description, opts).tap do |option| block ||= option.default_conversion_block define_accessors_for(option, &block) << option end end |