Skip to content

Instantly share code, notes, and snippets.

@jwo
Created June 10, 2014 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwo/597fb69970aacbeadd00 to your computer and use it in GitHub Desktop.
Save jwo/597fb69970aacbeadd00 to your computer and use it in GitHub Desktop.
Super Flipping Sweet homework from The Iron Yard
my_brigade = {}
my_brigade[:Chef_de_Cuisine] = "the Head Chef in charge of the kitchen"
my_brigade[:Sous_Chef] = "2nd in Charge to the Chef de Cuisine"
my_brigade[:Saucier] = "who Prepares sauces, soups, and finishes dishes"
my_brigade[:Rotisseur] = "the Grill cook who prepares meat dishes"
my_brigade[:Poissonnier] = "the Cook in charge of fish dishes"
my_brigade[:Entremetier] = "the Cook in charge of Vegetable and Pasta Dishes"
my_brigade[:Garde_Manger] = "the Cook who prepares cold dishes, salads, and charcuterie"
my_brigade[:Tournant] = "the Cook who helps in any station as necessary"
my_brigade[:Patissier] = "the Cook who prepares deserts and sweet dishes"
my_brigade[:Commis] = "an Apprentice cook in training"
puts "What position you want?"
puts my_brigade.keys.sort.join(", ")
answer = gets.chomp
value = my_brigade[answer.to_sym]
if value
puts "You will be: #{value}"
else
puts "Desole (Sorry) Chef"
end
puts "Au revoir"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment