Trans wrote: > Here, you can ditch classes altogether: > > class Module > def new(*args, &blk) > mod = self > klass = Class.new { include mod } > const_set( "#{name}Class", klass ) > klass.new(*args, &blk) > end > end > > ... > > T. Cool, Trans. Reminds me a bit of a snippet that adds virtual methods to Ruby. http://bigbold.com/snippets/posts/show/2621 -- Posted via http://www.ruby-forum.com/.