Verno Miller wrote:
> > Posted by Farrel Lifson (Guest)
> > on 18.10.2006 15:05
> >
> > Is it possible to mix in a module method to become a class method?
>
>
> Yet another approach:
>
> http://redcorundum.blogspot.com/2006...s-methods.html
This looks like much like #class_extension. How does this differ?
An interesting side note to this. I recetnly ran into the opposite case
wehere I wanted to prevent a class method (of a class) from being
inherited by the subclass. I had to use some method programming tricks
to undef the particular method. This further leads me to believe that
the best solution is to allow deignation of methods as inheritable or
not in much the same way we designate private/public. Classes' class
methods would be inheritable be default, module's not. This could also
be used for instance methods to create namespace local methods.
T.