Module: YamlLocalesJsonizer::Config
- Defined in:
- lib/yaml_locales_jsonizer/config.rb
Constant Summary collapse
- DEFAULTS =
{ load_path: nil, only_files: ['*.yml'] }
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
2 3 4 |
# File 'lib/yaml_locales_jsonizer/config.rb', line 2 def config @config end |
Class Method Details
.extended(mod) ⇒ Object
9 10 11 |
# File 'lib/yaml_locales_jsonizer/config.rb', line 9 def self.extended(mod) mod.init_config end |
Instance Method Details
#configure(&block) ⇒ Object
17 18 19 20 |
# File 'lib/yaml_locales_jsonizer/config.rb', line 17 def configure(&block) instance_eval(&block) config end |
#init_config ⇒ Object
13 14 15 |
# File 'lib/yaml_locales_jsonizer/config.rb', line 13 def init_config self.config = DEFAULTS end |