From 4a638b2630101a6d3b65dc3de6592efb1a3f10d2 Mon Sep 17 00:00:00 2001 From: noahpatterson Date: Sat, 30 Nov 2013 08:27:44 -0500 Subject: [PATCH] add train hash and passenger struct --- recipe.rb | 63 ++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 51 insertions(+), 12 deletions(-) diff --git a/recipe.rb b/recipe.rb index d4b2000..e397721 100644 --- a/recipe.rb +++ b/recipe.rb @@ -1,17 +1,56 @@ -ingredients = {} -ingredients[:avocados] = 4 -ingredients[:jalapenos] = 2 +# ingredients = {} +# ingredients[:avocados] = 4 +# ingredients[:jalapenos] = 2 -Recipe = Struct.new(:ingredients, :method) +# Recipe = Struct.new(:ingredients, :method) -recipe = Recipe.new( {avacados: 4, jalapenos: 2}, ["Peel / Slice Avocados", "Chop jalapenos into small dice"]) +# recipe = Recipe.new( {avacados: 4, jalapenos: 2}, ["Peel / Slice Avocados", "Chop jalapenos into small dice"]) -puts "ingredients" -recipe.ingredients.each do |key, value| - puts "* #{key}: #{value}" +# puts "ingredients" +# recipe.ingredients.each do |key, value| +# puts "* #{key}: #{value}" +# end + +# puts "\nMethod" +# recipe.method.each_with_index do |step, index| +# puts "#{index+1}. #{step}" +# end + + +current_city = {} +current_city[:number] = 1 +current_city[:picture] = 'Charleston ' + +engines = {} +engines[:number] = 2 +engines[:picture] = "