Class: YamlConfiguration::Loader
- Inherits:
-
Object
- Object
- YamlConfiguration::Loader
- Defined in:
- lib/yaml_configuration/loader.rb
Instance Method Summary collapse
Instance Method Details
#load(*config_files) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/yaml_configuration/loader.rb', line 3 def load(*config_files) combined_configuration = {} config_files.flatten.each do |config_file| loaded_config = load_yaml_config(config_file) combined_configuration.deep_merge!(loaded_config) end Configuration.new(combined_configuration) end |