Module: Nucleon::Mixin::ConfigCollection

Included in:
Config
Defined in:
lib/core/mixin/config/collection.rb

Overview

  • See collection Nucleon::Config::Collection

Instance Method Summary collapse

Instance Method Details

#all_propertiesObject

Return a reference to all of the globally defined properties.

This method generally should not be used in favor of the ::get method.

See:

  • Nucleon::Config::Collection::all



34
35
36
# File 'lib/core/mixin/config/collection.rb', line 34

def all_properties
  Config::Collection.all
end

#clear_propertiesObject

Clear all properties from the collection.

See:

  • Nucleon::Config::Collection::clear



70
71
72
# File 'lib/core/mixin/config/collection.rb', line 70

def clear_properties
  Config::Collection.clear
end

#delete_property(name) ⇒ Object

Delete property from collection.

See:

  • Nucleon::Config::Collection::delete



61
62
63
# File 'lib/core/mixin/config/collection.rb', line 61

def delete_property(name)
  Config::Collection.delete(name)
end

#get_property(name) ⇒ Object

Return specified property value.

See:

  • Nucleon::Config::Collection::get



43
44
45
# File 'lib/core/mixin/config/collection.rb', line 43

def get_property(name)
  Config::Collection.get(name)
end

#save_properties(options = {}) ⇒ Object

Dump properties to disk.

See:

  • Nucleon::Config::Collection::save



79
80
81
# File 'lib/core/mixin/config/collection.rb', line 79

def save_properties(options = {})
  Config::Collection.save(options)
end

#set_property(name, value) ⇒ Object

Set property value.

See:

  • Nucleon::Config::Collection::set



52
53
54
# File 'lib/core/mixin/config/collection.rb', line 52

def set_property(name, value)
  Config::Collection.set(name, value)
end