Created
January 29, 2014 20:49
-
-
Save eladmeidar/8696754 to your computer and use it in GitHub Desktop.
basic book
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 Book | |
def title_and_author(title, author) | |
@title = title | |
@author = author | |
end | |
def description | |
"#{@title} was written by #{@author}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment