From: pgregory@... (Paul Gregory) Date: 2002-11-20T23:12:32+09:00 Subject: Re: Need help dynamically creating classes. ts wrote in message news:<200211191534.gAJFY0d16939@moulon.inra.fr>... > >>>>> "P" == Paul Gregory writes: > Next question: is it possible to specify arguments to the initialize method when defining it with this code? I'd like to be able to do something like... defineClass("MyObject", scale) { scale(scale) puts(scale) } And have this define a class which takes one argument in its constructor, then use it thus... a = MyObject.new(1.5) Cheers PaulG