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 ...

Get Ruby by Example 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.