Class: FlareUp::OptionStore
- Inherits:
-
Object
- Object
- FlareUp::OptionStore
- Defined in:
- lib/flare_up/option_store.rb
Class Method Summary collapse
- .clear ⇒ Object
- .get(name) ⇒ Object
- .get_options ⇒ Object
- .store_option(name, value) ⇒ Object
- .store_options(options) ⇒ Object
Class Method Details
.clear ⇒ Object
21 22 23 |
# File 'lib/flare_up/option_store.rb', line 21 def self.clear storage.clear end |
.get(name) ⇒ Object
13 14 15 |
# File 'lib/flare_up/option_store.rb', line 13 def self.get(name) storage[name] end |
.get_options ⇒ Object
17 18 19 |
# File 'lib/flare_up/option_store.rb', line 17 def self. storage end |
.store_option(name, value) ⇒ Object
5 6 7 |
# File 'lib/flare_up/option_store.rb', line 5 def self.store_option(name, value) storage[name] = value end |
.store_options(options) ⇒ Object
9 10 11 |
# File 'lib/flare_up/option_store.rb', line 9 def self.() storage.merge!() end |