Skip to content

Instantly share code, notes, and snippets.

@dbc-challenges
Last active March 12, 2022 07:01
Show Gist options
  • Save dbc-challenges/7466d75f1d875bb39296 to your computer and use it in GitHub Desktop.
Save dbc-challenges/7466d75f1d875bb39296 to your computer and use it in GitHub Desktop.
# Your awesome code goes here!
#### Driver Code#### The code below should *drive* your coding...
one_by_one = Song.new("One by One", "Sirenia")
world_so_cold = Song.new("World So Cold", "Three Days Grace")
going_under = Song.new("Going Under", "Evanescence")
my_playlist = Playlist.new(one_by_one, world_so_cold, going_under)
lying_from_you = Song.new("Lying From You", "Linkin Park")
angels = Song.new("Angels", "Within Temptation")
my_playlist.add(lying_from_you, angels)
p my_playlist.num_of_tracks == 5
going_under.play
my_playlist.remove(angels)
p my_playlist.includes?(lying_from_you) == true
my_playlist.play_all
my_playlist.display
### Put your Reflection here:
#
#
#
#
#
#
#
#
#
#
#
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment