module DhEasy::Core::Plugin::CollectionVault

Public Instance Methods

add_collection(key, name) click to toggle source

Add a new collection

@param [Symbol] key Collection key used to lookup for collection name. @param [String] name Collection name used on outputs.

# File lib/dh_easy/core/plugin/collection_vault.rb, line 14
def add_collection key, name
  if collections.has_key? key
    raise "Can't add \"#{key}\" collection, it already exists!"
  end
  collections[key] = name
end
collections() click to toggle source

Stored collections info as hash.

# File lib/dh_easy/core/plugin/collection_vault.rb, line 6
def collections
  @collections ||= {}
end