Episode #481: Mixin to Object

It's easy for code to become deeply dependent on mixin modules in Ruby. Especially in the context of Rails view code calling out to helper modules, disentangling dependencies can feel like untying a thick knot. In this episode you'll learn a Ruby trick that will enable you to treat mixin modules as separate objects, and draw clear lines of encapsulation in the process.

This page is just for members. Sign in or subscribe to gain access!