O'Reilly logo

Ruby by Example by Kevin C. Baird

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

Chapter Recap

What was new in this chapter?

  • End-of-line differences among operating systems

  • Regular expressions, including the ? counter

  • The sprintf method

  • Multiplication of Arrays

  • The inject method

  • Regular expressions with the + counter

  • Objects as the results of blocks

  • Calling successive methods on the output of methods (“chaining” methods)

  • Using new methods of Open Classes in quick scripts

  • Multiplication of Strings

  • The grep method

  • The map method

  • The Range class

  • Recursion

That’s quite a bit, including some important new functional concepts like recursion and a few very handy functional methods. You’ll need these concepts as we move on. Let’s proceed to some more complex treatment of numbers in Chapter 5.

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