Chapter 8. Advanced Ruby
This chapter covers advanced techniques and operations that are available in Ruby. You learn about threads and file operations in Ruby. You also learn about reflection, which is outstanding compared to what you might be familiar with from static languages such as C# and RubyGems (a library container). The chapter finishes by showcasing several design patterns and their implementation in Ruby.
Ruby supports multithreaded applications. Therefore, code blocks can be defined as threads and be run in parallel. For example, remember the
Human class. Humans, as we know, usually do several ...