Last active
August 27, 2015 16:00
-
-
Save rpearce/3ec91dce9ad50888c808 to your computer and use it in GitHub Desktop.
Song Class Challenge
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
class Song | |
# your code here | |
end | |
song = Song.new( | |
id: 1, | |
title: "Mother", | |
author: "Pink Floyd", | |
album: "The Wall" | |
) | |
song.id == 1 | |
song.title == "Mother" | |
song.author == "Pink Floyd" | |
song.album == "The Wall" | |
song.id = 3 | |
song.id == 3 | |
# Your task is to fill in the missing | |
# code from the `Song` class so that the | |
# rest of the class instance-related code | |
# works and each condition returns true. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment