| lang | EN |
|---|---|
| title | Summary |
| answer | \{\} |
| class | stretcher chapmark |
| ok | Ok, that's an empty hash |
| error |
You're a level six Ruby cleric. I mean what a great job you've done. Let's review:
You loaded some data of the internet, traversed a data structure and selected values.
You iterated all elements of a hash and you chained some more methods.
And if that wasn't enough, you formatted and printed some values in a way that is easy to read for humans. In fact you made a real program!
You learned to take control of your programs with if and else statements.
What could possibly be next? What could you possibly have to learn now? Ha, this is the best part. You've come such a long way that we're going to uncover classes. For two more short lessons and you're done.
Earlier, we created a hash like this:
Hash.new