In this, the first (but far from the last!) RubyTapas episode to focus on a Ruby 2.0 feature, we look at the implications of Ruby's newly relaxed rules for binding …
This episode covers how to write a "macro"-a method that generates or modifies other methods-using the classic example of memoizing method results.
In episode 27, we switched from adding generated methods directly to a class, to using anonymous modules. In this episode, we consolidate our metaprogramming modules, and make them more self-documenting.
In this episode, we look at how to use dynamically generated modules to make metaprogrammed methods open for future extension.
A short introduction to using Ruby's Forwardable library for object composition.