O'Reilly logo

Sams Teach Yourself Ruby in 21 Days by Mark Slagell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Is There Homework in This Class?

We'll end most lessons with a few suggested activities and questions to help you sort through what you've seen. These aren't designed primarily to test your skills but to help you learn, which is an altogether different goal. Do your best before consulting the answers; especially in later chapters, there will be times when an answer you have to struggle for will turn out to be different from, yet just as good as, the one we provide.

For today, you'll just be typing some things into irb and drawing what conclusions you can. Start irb in a terminal window. Type the following expressions on separate lines, notice what values and errors get reported, and see whether you can answer the questions that follow.

 99 < ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required