diff --git a/recipe.rb b/recipe.rb index d4b2000..a7a985f 100644 --- a/recipe.rb +++ b/recipe.rb @@ -1,17 +1,17 @@ -ingredients = {} -ingredients[:avocados] = 4 -ingredients[:jalapenos] = 2 +train = {} +train[:engines] = 4 +train[:current_city] = "Columbus" +train[:number_of_cars] = 15 +train[:caboose] = true -Recipe = Struct.new(:ingredients, :method) +Passenger = Struct.new(:train, :name) -recipe = Recipe.new( {avacados: 4, jalapenos: 2}, ["Peel / Slice Avocados", "Chop jalapenos into small dice"]) +passenger = Passenger.new({engines: 4, current_city: "Columbus", number_of_cars: 2, caboose: true}, ["Maurice Womack"]) -puts "ingredients" -recipe.ingredients.each do |key, value| +puts "train information" +passenger.train.each do |key, value| puts "* #{key}: #{value}" end -puts "\nMethod" -recipe.method.each_with_index do |step, index| - puts "#{index+1}. #{step}" -end \ No newline at end of file +puts "\nName:" +puts passenger.name