Ruby Metaprogramming: Dynamically Inherited Methods™ | upstream agile - software

All methods generated by string_attr_reader are now added to that new module instead of the class. The result is that when overriding those methods you can now call super because they’re are inherited from the new module.

Lexy Over 14 years ago