Hash Basics
After this exercise, a student will be able to:
- Create hashes, and perform simple operations on them
- Add new data to a hash
- Work with nested hashes
- Ruby hashes
- Online Materials
- Hash Docs
- Fork and clone this repo
- Look at the data in
person.rb
-
- Check out
00_example.rb
for an example of what to do (basically, justputs
things out
- Check out
- Import the tracker stories in
stories.csv
and work through them.
This warmup can be completed multiple times to increase your comfort level with the material. To work on this from scratch, you can:
- Add an upstream remote that points to the original repo
git remote add upstream [email protected]:gSchool/hash-basics.git
- Fetch the latest from the upstream remote using
git fetch upstream
- Create a new branch from the master branch of the upstream remote
git checkout -b v2 upstream/master
- Implement specs and code
- Push using
git push -u origin v2
Each time you do the exercise, create a new branch. For example the 3rd time you do the exercise the branch name will be v3 instead of v2.