RubyFlow The Ruby and Rails community linklog

Decorator Pattern with Mixology

Following a post from jay field on the underuse of modules in ruby I wrote a post suggesting what i believe is the most elegant way to add and remove(!) behavior to a class with the mixology gem.

Comments

Or you can use rbmodexcl which gives you an #unextend and #uninclude :-)

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in