Skip to content

Instantly share code, notes, and snippets.

@mostlybadfly
Last active August 29, 2015 14:11
Show Gist options
  • Save mostlybadfly/85868e81083d216b3828 to your computer and use it in GitHub Desktop.
Save mostlybadfly/85868e81083d216b3828 to your computer and use it in GitHub Desktop.
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