Module: CoConfig::Loader

Included in:
Configuration
Defined in:
lib/co_config/loader.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.loadObject

Instance Method Details

#load(file_name, &validation) ⇒ Object



10
11
12
13
# File 'lib/co_config/loader.rb', line 10

def load(file_name, &validation)
  config = load!(full_name(file_name), &validation)
  CoConfig.const_set(base_name(file_name).upcase, config)
end