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?

  • Making new predicates for explicit Boolean casting

  • Method aliases

  • Superclasses

  • Metaprogramming

  • The Symbol class

  • Arrays and the join method

  • The protected level of access control

  • The dup and pop methods

  • Making command-line interface flags

  • Library files for reusable code

  • Class constants

  • The Hash class

  • Hash keys and values

  • The here doc declaration

  • Newline characters within Strings

  • Using Array.include? to test for membership

  • The any? predicate

  • The Hash.keys method

  • A bit on Ruby1.8 vs. Ruby1.6 and the any? predicate

  • Palindromes and reversing Strings

  • Extracting the letters from Strings

  • Changing the case of Strings

That’s even more than the last chapter, which was hardly holding your hand. Congratulations again. Let’s move on to some ...

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