Module: DynamicConfiguration
- Defined in:
- lib/dynamic_configuration.rb
Defined Under Namespace
Classes: Config, ConfigFactory, Group, MissingGroupException, MissingSettingException, Settings
Class Method Summary
collapse
Class Method Details
.config_paths ⇒ Object
11
12
13
|
# File 'lib/dynamic_configuration.rb', line 11
def config_paths
@config_paths
end
|
.const_names ⇒ Object
15
16
17
|
# File 'lib/dynamic_configuration.rb', line 15
def const_names
@const_names
end
|
.create(const_name, root_file_path) ⇒ Object
5
6
7
8
9
|
# File 'lib/dynamic_configuration.rb', line 5
def create(const_name, root_file_path)
@config_paths.push(File.dirname(root_file_path))
@const_names.push(const_name)
ConfigFactory.new.create_config(const_name, root_file_path)
end
|