Module: EasyJSON
- Defined in:
- lib/easy_json_config/config.rb
Defined Under Namespace
Classes: Config
Class Method Summary collapse
-
.config(path: nil, defaults: nil, frozen_values: nil, required_keys: nil) ⇒ Object
Shorter, more readable config instantiation.
- .configs ⇒ Object
Class Method Details
.config(path: nil, defaults: nil, frozen_values: nil, required_keys: nil) ⇒ Object
Shorter, more readable config instantiation
7 8 9 |
# File 'lib/easy_json_config/config.rb', line 7 def self.config(path: nil, defaults: nil, frozen_values: nil, required_keys: nil) EasyJSON::Config.new(path: path, defaults: defaults, frozen_values: frozen_values, required_keys: required_keys) end |
.configs ⇒ Object
2 3 4 |
# File 'lib/easy_json_config/config.rb', line 2 def self.configs @configs ||= {} end |