Hi --

On Mon, 24 Feb 2003, Phil Tomson wrote:

> include is a method on class Module and I believe that Class already
> inherits from Module - I don't think you want Quinn to inherit from
> Module.  To get this to work you'd have to make 'quinn_loadModule' a
> class method, like:
>
> class Quinn
>   def Quinn.loadModule(modname)
>     load "modules/#{modname}.rb"
>     include #{modname}
>   end
> end

The include #{modname} thing will be read as "include" plus a comment,
though :-)


David

-- 
David Alan Black
home: dblack / candle.superlink.net
work: blackdav / shu.edu
Web:  http://pirate.shu.edu/~blackdav