Class: Staticpress::Settings
Class Method Summary
collapse
Methods inherited from JSObject
#-, #[], #merge, new, #to_hash
Class Method Details
.default ⇒ Object
3
4
5
|
# File 'lib/staticpress/settings.rb', line 3
def self.default
new 'verbose' => false
end
|
.instance ⇒ Object
7
8
9
|
# File 'lib/staticpress/settings.rb', line 7
def self.instance
new(default.to_hash.merge(@runtime_settings || {}))
end
|
.set!(settings) ⇒ Object
11
12
13
|
# File 'lib/staticpress/settings.rb', line 11
def self.set!(settings)
(@runtime_settings ||= {}).merge!(settings)
end
|