Module: Settings

Defined in:
lib/settings_tree.rb

Class Method Summary collapse

Class Method Details

.method_missing(method, *args, &block) ⇒ Object

automatic access to settings groups



17
18
19
# File 'lib/settings_tree.rb', line 17

def self.method_missing(method, *args, &block)
	return SettingsHolder.instance.get_settings(method)
end

.register_settings_file(name, file) ⇒ Object

Convenient shortcuts to the SettingsHolder class



6
7
8
# File 'lib/settings_tree.rb', line 6

def self.register_settings_file(name, file)
	SettingsHolder.instance.register_settings_file(name, file)
end

.reload_allObject



9
10
11
# File 'lib/settings_tree.rb', line 9

def self.reload_all
	return SettingsHolder.instance.reload_all
end

.reload_group(name) ⇒ Object



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

def self.reload_group(name)
	return SettingsHolder.instance.reload_group(name)
end