Class: UltraConfig::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/ultra_config/settings.rb

Class Method Summary collapse

Class Method Details

.defaultObject



3
4
5
6
7
# File 'lib/ultra_config/settings.rb', line 3

def self.default
  {
    type_safety: :weak
  }
end

.method_missing(m) ⇒ Object



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

def self.method_missing(m)
  settings[m]
end

.set(setting, value) ⇒ Object



13
14
15
# File 'lib/ultra_config/settings.rb', line 13

def self.set(setting, value)
  settings[setting] = value
end

.settingsObject



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

def self.settings
  @settings ||= default
end