class Flowcation::Settings
Public Class Methods
from_config(options={})
click to toggle source
# File lib/flowcation/settings.rb, line 15 def self.from_config(options={}) options&.each do |k,v| instance.register_setting k,v end end
get(k)
click to toggle source
# File lib/flowcation/settings.rb, line 7 def self.get(k) instance.settings[k] end
set(k, v)
click to toggle source
# File lib/flowcation/settings.rb, line 11 def self.set(k, v) instance.settings[k] = v end