Class: Eco::CLI::Config::UseCases::CaseConfig
- Defined in:
- lib/eco/cli/config/use_cases.rb
Instance Attribute Summary collapse
-
#callback ⇒ Object
Returns the value of attribute callback.
-
#casename ⇒ Object
Returns the value of attribute casename.
-
#cases_config ⇒ Object
Returns the value of attribute cases_config.
-
#description ⇒ Object
Returns the value of attribute description.
-
#option ⇒ Object
Returns the value of attribute option.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#callback ⇒ Object
Returns the value of attribute callback
8 9 10 |
# File 'lib/eco/cli/config/use_cases.rb', line 8 def callback @callback end |
#casename ⇒ Object
Returns the value of attribute casename
8 9 10 |
# File 'lib/eco/cli/config/use_cases.rb', line 8 def casename @casename end |
#cases_config ⇒ Object
Returns the value of attribute cases_config
8 9 10 |
# File 'lib/eco/cli/config/use_cases.rb', line 8 def cases_config @cases_config end |
#description ⇒ Object
Returns the value of attribute description
8 9 10 |
# File 'lib/eco/cli/config/use_cases.rb', line 8 def description @description end |
#option ⇒ Object
Returns the value of attribute option
8 9 10 |
# File 'lib/eco/cli/config/use_cases.rb', line 8 def option @option end |
#type ⇒ Object
Returns the value of attribute type
8 9 10 |
# File 'lib/eco/cli/config/use_cases.rb', line 8 def type @type end |
Instance Method Details
#add_option(arg, desc = nil, &block) ⇒ Object
9 10 11 12 |
# File 'lib/eco/cli/config/use_cases.rb', line 9 def add_option(arg, desc = nil, &block) core_config..add(arg, desc, namespace: option, &block) self end |