From: Martin Coxall Date: 2006-09-29T01:22:01+09:00 Subject: Re: define_method confusery ------=_Part_46838_18254921.1159460518682 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/28/06, Arnaud Bergeron wrote: > > On 9/28/06, Martin Coxall wrote: > [snip] > > > > # List the methods of Klass > > Klass.methods.sort.each do |method| > > Try Klass.instance_methods. Aha! That would do it. Thanks. Do you know if it's possible to add class methods to classes using define_method() then? It seems to work if I do a define_method("Klass."+methodName) However, when I then try to invoke using Klass.send(methodName, "some stuff") It doesn't work. Regards, Martin ------=_Part_46838_18254921.1159460518682--