From: itsme213@... Date: 2005-12-21T14:07:48+09:00 Subject: Re: can someone improve on this multiple inheritence methodology? Ara.T.Howard wrote: > this provide method re-use at both the class and module level. it can be used > for a kind of multiple inheritence organizational style. > > harp:~ > cat a.rb > class Module > def inherit other > extend other::ClassMethods if defined? other::ClassMethods > extend other::ModuleMethods if defined? other::ModuleMethods ** > include other::ModuleMethods if defined? other::ModuleMethods > include other::InstanceMethods if defined? other::InstanceMethods > include other > end > end I did not understand the '**' line. Shouldn't it be: - extend ClassMethods - extend ModuleMethods - include InstanceMethods ?