From: Niklas Frykholm Date: 2002-03-17T03:37:57+09:00 Subject: Re: Mixin class methods? [Chris Morris]: > Ahhh ... found a way to do it, sorta. [ruby-talk:14894] lead me to this: > > module MixInst ... > module MixCls ... > > class Test > include MixInst > Test.extend(MixCls) > end > > .. but now I've got two modules, and a less than clear way of mixing in. > Wonder if there's a way to get the above all in one module. You can do it by redefining append_features. See the Ruby Cookbook (www.rubycookbook.org) Recepies::Ruby Techniques::Class methods in module Or [ruby-talk: 14845]. // Niklas