Episode #601
Module Builder Pattern – Part 1

Love it or hate it, metaprogramming is an undeniable part of Ruby programming lore and culture. And while you can avoid metaprogramming indefinitely if you want to, once you dive in, it pays to invest in robust techniques. In today’s episode, guest chef Chris Salzberg is your guide to introduce you to one of the most important and foundational patterns for Ruby metaprogramming: the Module Builder pattern. In this first episode of a series, you’ll see how Ruby modules are instances of a class just like anything else… and just like any object, they can be customized. Enjoy!

Members only

Log in below or get 48-hour access for $5.

Need more time? See all available plans.