[Nitro] Better than classinherit.rb!

zimba-tm zimba.tm at gmail.com
Wed Apr 12 07:57:55 EDT 2006

What would be needed instead of redefining all the methods is toaccess directly to the singleton-class.
Something like :
class Module
  def mixin(mod)    include mod    extend mod.singleton_class  end
et voila ! :-p (only the problem is that mod.singleton_class doesn't exist)
--Cheers,  zimba

More information about the Nitro-general mailing list