Episode #678
Module Prepend

Sometimes you need to attach new functionality, such as logging, to other people’s code. Learn to leverage Ruby’s ancestor chain for (relatively) clean patching, using prepended modules!

Members only

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

Need more time? See all available plans.