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.
