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_pathsObject



12
13
14
# File 'lib/dynamic_configuration.rb', line 12

def config_paths
  @config_paths
end

.const_namesObject



16
17
18
# File 'lib/dynamic_configuration.rb', line 16

def const_names
  @const_names
end

.create(const_name, root_file_path) ⇒ Object



6
7
8
9
10
# File 'lib/dynamic_configuration.rb', line 6

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