| lang | ID |
|---|---|
| title | Of All the Summaries, |
| answer | \{\} |
| class | stretcher chapmark |
| load | prev |
| ok | You've made an empty hash! |
| error |
Methods may have exclamations (and also question marks) in their name. These are just there to better explain what their function is. No big deal.
Search and change strings
Chaining methods lets you get a lot more done. Break up a poem, reverse it, reassemble it: poem.lines.reverse.join
At this point, you may want to tinker with the poem a bit more. A complete list of all the String methods is here.
Go ahead and try a few, such as: poem.downcase or poem.swapcase
When you feel ready to move on, type:
books = {}