Sha256: a0d9331ad8cf480bf8d20162e9f17af54d0a6c3d24957f329be2d21f28b4682a

Contents?: true

Size: 786 Bytes

Versions: 5

Compression:

Stored size: 786 Bytes

Contents

# Should be included via extend
#
# extend Mixin::ConfigCollection
#

module Nucleon
module Mixin
module ConfigCollection

  #-----------------------------------------------------------------------------
  # Configuration collection interface
  
  def all_properties
    return Config::Collection.all
  end
  
  #---
  
  def get_property(name)
    return Config::Collection.get(name)
  end
  
  #---
  
  def set_property(name, value)
    Config::Collection.set(name, value)
    return self  
  end
  
  #---
  
  def delete_property(name)
    Config::Collection.delete(name)
    return self
  end
  
  #---
  
  def clear_properties
    Config::Collection.clear
    return self  
  end
  
  #---
  
  def save_properties
    Config::Collection.save
    return self
  end
end
end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nucleon-0.1.5 lib/core/mixin/config/collection.rb
nucleon-0.1.4 lib/core/mixin/config/collection.rb
nucleon-0.1.3 lib/core/mixin/config/collection.rb
nucleon-0.1.2 lib/core/mixin/config/collection.rb
nucleon-0.1.1 lib/core/mixin/config/collection.rb