Skip to content

RubyoffRails/recipe-hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages