-
Maglev must be installed
-
If you are using RVM, remember to
rvm use maglev
-
Run
ruby initialise_repo.rbThis creates a persistent Person class and sets up the initial empty array -
Run
ruby show_persons.rbAn empty list must be returned -
Run
ruby add_persons.rb -
Run
ruby show_persons.rbThe following must be displayed@dhh tweeted 0 times, follows 0 persons and is followed 2 times , following: { } followed by: { obie unclebob }@obie tweeted 0 times, follows 1 persons and is followed 1 times , following: { dhh } followed by: { unclebob }@unclebob tweeted 0 times, follows 2 persons and is followed 2 times , following: { dhh obie } followed by: { noob1 noob2 }
See the presentation on SlideShare for more details.