-
-
Save dbc-challenges/7466d75f1d875bb39296 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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