Class: ConfigRC::Configuration

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Enumerable
Defined in:
lib/config-rc/configuration.rb

Overview

Provide hierarchical configuration.

Environment variables win over

command line options win over
  settings from the config file

Instance Method Summary collapse

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, options = {})
  @providers = [RcFileProvider.new(app_name), OptionsProvider.new(options), EnvironmentProvider.new(app_name)]
end