Ahhh ... found a way to do it, sorta. [ruby-talk:14894] lead me to this:
module MixInst
def inst_meth
puts 'inst_meth'
end
end
module MixCls
def class_meth
puts 'class_meth'
end
end
class Test
include MixInst
Test.extend(MixCls)
end
t = Test.new
t.inst_meth
Test.class_meth
... 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.
Chris