Class: ConfigRC::Configuration
- Inherits:
-
Object
- Object
- ConfigRC::Configuration
- Extended by:
- Forwardable
- Includes:
- Enumerable
- Defined in:
- lib/config-rc/configuration.rb
Overview
Provide hierarchical configuration.
Environment variables win over
command line win over
settings from the config file
Instance Method Summary collapse
-
#initialize(app_name, options = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(app_name, options = {}) ⇒ Configuration
Returns a new instance of Configuration.
16 17 18 |
# File 'lib/config-rc/configuration.rb', line 16 def initialize(app_name, = {}) @providers = [RcFileProvider.new(app_name), OptionsProvider.new(), EnvironmentProvider.new(app_name)] end |