Created
April 14, 2016 08:18
-
-
Save krokrob/f778dd0e3c679082187df14d5f8a2b43 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
class Restaurant | |
attr_reader :name, :city | |
def initialize(name, city) | |
@name, @city = name, city | |
end | |
def welcome | |
return "Welcome to #{@name}" | |
end | |
def self.categories | |
return "Japanese, Lebanese, French" | |
end | |
end | |
puts Restaurant.categories | |
# "Japanese, Lebanese, French" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment