Episode #602
Module Builder Pattern – Part 2

In the preceding episode, Chris Salzberg showed us how modules are Ruby objects just like any other. And just like other kinds of objects, we can make new classes of module. In today’s episode, he shows us how to apply this knowledge to implement a foundational Ruby metaprogramming technique: the Module Builder pattern.

Members only

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

Need more time? See all available plans.