No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
recipe.rb
student.rb

README.md

Recipe Hash

Most programs have data -- here we talk about 3 ways to store data in a program: the ever-present Hash, the cool-kid Struct, and a regular Class.

Your Assignment

Change our recipe hash into a hash that that describes a Train.

It should have

  • a current city, a number of engines, a number of cars, and a caboose.
  • output the train formatted nicely.
  • Create a passenger Struct that has a name and a train (from above)

Show Notes

Copyright: Jesse Wolgamott, MIT License (See LICENSE)