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.
Threads
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 ...
Get IronRuby Unleashed 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.