Module: Macmillan::Utils::Settings
- Defined in:
- lib/macmillan/utils/settings.rb,
lib/macmillan/utils/settings/value.rb,
lib/macmillan/utils/settings/lookup.rb,
lib/macmillan/utils/settings/key_not_found.rb,
lib/macmillan/utils/settings/app_yaml_backend.rb,
lib/macmillan/utils/settings/env_vars_backend.rb
Defined Under Namespace
Classes: AppYamlBackend, EnvVarsBackend, KeyNotFound, KeyNotFoundError, Lookup, Value
Class Attribute Summary collapse
-
.backends ⇒ Object
- Backends must respond to the following interface: # ‘.new`
- Return an instance of the backend # ‘#get key`
-
Return a Value for the key.
Class Method Summary collapse
-
.instance ⇒ Object
Get an instance of the settings looker-upper.
Class Attribute Details
.backends ⇒ Object
Backends must respond to the following interface:
# `.new` :: Return an instance of the backend
# `#get key`:: Return a Value for the key.
:: If there's no setting, return
:: a KeyNotFound
27 28 29 |
# File 'lib/macmillan/utils/settings.rb', line 27 def backends @backends end |