Sha256: e4d5f04b1f8560054a64ccb12b46c7bf6219a2e64bec8c70b179fc4185540c9c
Contents?: true
Size: 606 Bytes
Versions: 14
Compression:
Stored size: 606 Bytes
Contents
module AeEasy module Core module Plugin module CollectionVault # Stored collections info as hash. def collections @collections ||= {} end # Add a new collection # # @param [Symbol] key Collection key used to lookup for collection name. # @param [String] name Collection name used on outputs. def add_collection key, name if collections.has_key? key raise "Can't add \"#{key}\" collection, it already exists!" end collections[key] = name end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems