Day 4. Iteration and Flow Control

I'd like to thank each and every one of you for stopping by. (Thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, … )

—Steve Martin, Let's Get Small (1977)

Yesterday we learned about the standard container types and some of the methods that help us manipulate them. Today we will start dealing with containers, and the items they contain, with a great deal more specificity and flexibility. We will also learn many of the logic and control features that we'll need before going much farther.

Get Sams Teach Yourself Ruby in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.