On Sun, 8 Jan 2006 dblack / wobblini.net wrote:

> Wouldn't it be clearer just to write instance methods for a module?  It
> feels a bit like you're creating a kind of second skin for a system that
> already does this.

generally i do just this.  however, i've found it extremely useful to be able
to do


   include SomeModule::InstanceMethods  # mixin only instance methods

   extend SomeModule::ClassMethods # mixin only class methods

   include SomeModule # mixin InstanceMethods and extend with ClassMethods via
                      # over-ridden self::included


when factoring out code in large systems.

regards.

-a
-- 
===============================================================================
| ara [dot] t [dot] howard [at] noaa [dot] gov
| strong and healthy,
| who thinks of sickness until it strikes like lightning?
| preoccupied with the world,
| who thinks of death, until it arrives like thunder?
| -- milarepa
===============================================================================