Metaprogramming Ruby 2: Program Like the Ruby Pros (2014)

Metaprogramming Ruby 2: Program Like the Ruby Pros (2014)

Introduction

Part 1. Metaprogramming Ruby

Chapter 1. The M Word

Chapter 2. Monday: The Object Model

Chapter 3. Tuesday: Methods

Chapter 4. Wednesday: Blocks

Chapter 5. Thursday: Class Definitions

Chapter 6. Friday: Code That Writes Code

Chapter 7. Epilogue

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

Chapter 13. One Final Lesson

Part 3. Appendixes

Appendix 1. Common Idioms

Appendix 2. Domain-Specific Languages

Appendix 3. Spell Book