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

This chapter’s mandate was to use techniques you’ve already learned at some broader levels. However, there were still a few new concepts or approaches.

  • Equidistant Letter Sequences and larger-scale text searches

  • Extracting single characters from Strings

  • The chr method

  • Modeling natural selection with methinks.rb

  • Subclassing (Children < Array) and inheritance

  • Calculating differences between Strings

  • select_fittest : inject versus sort_by

  • Genuine random versus pseudo-random

  • Meta-mutation with methinks_meta.rb

  • Alphabetizing inspect through overriding

Our next chapter is the second of two chapters that consider more complex programs. While this chapter mainly expanded upon concepts we’ve already learned, the next one uses an exciting new type of ...

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