ga-wdi-boston / ruby-object-class-methods

Other
0 stars 130 forks source link

Needs to include starter code for album #15

Closed BenGitsCode closed 7 years ago

BenGitsCode commented 7 years ago

starter code from previous lesson required for tests to work.

Not sure which previous lesson, discovered during delivery.

raq929 commented 7 years ago

Possible starter code:

# Album class
class Album # Albums have an artist, title, and tracks
  attr_reader :artist, :title
  attr_accessor :tracks

  @@collection = []

  def initialize(artist:, title:)
    @artist = artist
    @title = title
    @tracks = []
  end
end

class Song
  attr_reader :title

  def initialize(title:)
    @title = title
  end
end
jrhorn424 commented 7 years ago

I like this starter code more than what is present as of 8fb9bd619ff. (at least in the specs)

That said, thanks for cleaning this up so much!