Module: Mixin::ConfigChoice
- Included in:
- DefaultConfig
- Defined in:
- lib/clearbooks/interface/thor/mixin/config_choice.rb
Instance Method Summary collapse
Instance Method Details
#config_choice ⇒ Object
11 12 13 14 15 |
# File 'lib/clearbooks/interface/thor/mixin/config_choice.rb', line 11 def config_choice defaults = YAML.load_file(File.( File.dirname( __FILE__ ) + '/../../../template/default_values.yml')) defaults['clearbooks'].each_key { |key| choice_option(defaults['clearbooks'], key) } defaults end |