Class: SettingsReader::Configuration
- Inherits:
-
Object
- Object
- SettingsReader::Configuration
- Defined in:
- lib/settings_reader/configuration.rb
Overview
All gem configuration settings
Constant Summary collapse
- DEFAULT_BASE_FILE_PATH =
'config/app_settings.yml'.freeze
- DEFAULT_LOCAL_FILE_PATH =
'config/app_settings.local.yml'.freeze
Instance Attribute Summary collapse
-
#backends ⇒ Object
Returns the value of attribute backends.
-
#resolvers ⇒ Object
Returns the value of attribute resolvers.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/settings_reader/configuration.rb', line 8 def initialize @base_file_path = DEFAULT_BASE_FILE_PATH @local_file_path = DEFAULT_LOCAL_FILE_PATH @backends = [ SettingsReader::Backends::YamlFile.new(DEFAULT_LOCAL_FILE_PATH), SettingsReader::Backends::YamlFile.new(DEFAULT_BASE_FILE_PATH) ] @resolvers = [ SettingsReader::Resolvers::Env.new ] end |
Instance Attribute Details
#backends ⇒ Object
Returns the value of attribute backends.
6 7 8 |
# File 'lib/settings_reader/configuration.rb', line 6 def backends @backends end |
#resolvers ⇒ Object
Returns the value of attribute resolvers.
6 7 8 |
# File 'lib/settings_reader/configuration.rb', line 6 def resolvers @resolvers end |