Method: Crowdfund::Collection#initialize

Defined in:
lib/crowdfund/collection.rb

#initialize(name) ⇒ Collection

this method converts a Collection.new specified title to the correct format when created



8
9
10
11
12
# File 'lib/crowdfund/collection.rb', line 8

def initialize(name)       #this method converts a Collection.new specified title to the correct format when created

    @name = name.upcase    #upcased all collection titles for now

    @collection = []
    puts "Collection '#{@name}' was created."
end