Module: Coral::Mixin::ConfigCollection
- Included in:
- Config
- Defined in:
- lib/coral_core/mixin/config_collection.rb
Instance Method Summary collapse
-
#all_properties ⇒ Object
—————————————————————————– Configuration collection interface.
-
#clear_properties ⇒ Object
—.
-
#delete_property(name) ⇒ Object
—.
-
#get_property(name) ⇒ Object
—.
-
#save_properties ⇒ Object
—.
-
#set_property(name, value) ⇒ Object
—.
Instance Method Details
#all_properties ⇒ Object
Configuration collection interface
13 14 15 |
# File 'lib/coral_core/mixin/config_collection.rb', line 13 def all_properties return Config::Collection.all end |
#clear_properties ⇒ Object
39 40 41 42 |
# File 'lib/coral_core/mixin/config_collection.rb', line 39 def clear_properties Config::Collection.clear return self end |
#delete_property(name) ⇒ Object
32 33 34 35 |
# File 'lib/coral_core/mixin/config_collection.rb', line 32 def delete_property(name) Config::Collection.delete(name) return self end |
#get_property(name) ⇒ Object
19 20 21 |
# File 'lib/coral_core/mixin/config_collection.rb', line 19 def get_property(name) return Config::Collection.get(name) end |
#save_properties ⇒ Object
46 47 48 49 |
# File 'lib/coral_core/mixin/config_collection.rb', line 46 def save_properties Config::Collection.save return self end |
#set_property(name, value) ⇒ Object
25 26 27 28 |
# File 'lib/coral_core/mixin/config_collection.rb', line 25 def set_property(name, value) Config::Collection.set(name, value) return self end |