Chapter 8. Advanced Ruby

In This Chapter


Handling Files




Design Patterns

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

Get IronRuby Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.