RubyTapas 027: Macros and Modules

In this episode themed after a certain sci-fi television series with the initials “BSG”, we take a look at how to use dynamically generated modules to make metaprogrammed methods open for future extension.

This is a two-parter. In part two, (which current subscribers received yesterday), we dig deeper and explore ways to make the generated modules more self-contained, self-explanatory, and discoverable. Part one is below; for part two, you’ll have to subscribe!

Like what you see? This is just a taste of RubyTapas! Sign up today to get two videos a week, along with full source code and transcripts. Or click here to learn more.