Metaprogramming Ruby 2: Program Like the Ruby Pros (2014)
Part 1. Metaprogramming Ruby
Chapter 2. Monday: The Object Model
Chapter 5. Thursday: Class Definitions
Chapter 6. Friday: Code That Writes Code
Part 2. Metaprogramming in Rails
Chapter 8. Preparing for a Rails Tour
Chapter 9. The Design of Active Record
Chapter 10. Active Support's Concern Module
Chapter 11. The Rise and Fall of alias_method_chain
Chapter 12. The Evolution of Attribute Methods
Part 3. Appendixes
Appendix 2. Domain-Specific Languages