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.
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