Last active
August 29, 2015 14:11
-
-
Save mostlybadfly/85868e81083d216b3828 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 Names | |
def initialize | |
@list = {} | |
end | |
def add(name, fave_food) | |
@list[name] = fave_food | |
end | |
def change_food(ref_name, new_food) | |
@list[ref_name] = new_food | |
end | |
def self.show | |
p @list | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment