Module: Configuration::Helpers
- Defined in:
- lib/madvertise/ext/config.rb
Overview
The Helpers module can be included in all classes that wish to load configuration file(s). In order to load custom configuration files the including class needs to set the @config_file instance variable.
Instance Method Summary collapse
-
#config ⇒ Configuration
Load the configuration.
Instance Method Details
#config ⇒ Configuration
Load the configuration. The default configuration is located at lib/ganymed/config.yml
inside the Ganymed source tree.
125 126 127 128 129 130 |
# File 'lib/madvertise/ext/config.rb', line 125 def config @config ||= Configuration.new(Env.mode) do |config| config.mixin(@default_config_file) if @default_config_file config.mixin(@config_file) if @config_file end end |