From: Chris Morris Date: 2002-03-17T03:01:04+09:00 Subject: Mixin class methods? Is it possible to define a method in a module so that when it's mixed in, it becomes a class method? I tried something like this: module Mix def inst_meth puts 'inst_meth' end class << self def class_meth puts 'class_meth' end end end class Test include Mix end t = Test.new t.inst_meth Test.class_meth ... but I guess the class << self call puts the method into the metaclass of the module Mix, eh? Hmmm... any way to do this? Chris