From: Martin Coxall Date: 2006-09-29T07:36:03+09:00 Subject: Re: define_method confusery > You need to send define_method to the classes singleton class, and > that takes a trick: > Okay, I think I understand why that is, but I'd better re-read Programming Ruby on Singleton classes. > > def create_class_method(name, klazz, meth=nil, &b) > klazz_klazz = class << klazz; self; end > create_method(name, klazz_klazz, meth, &b) > end Okay, I can kind of see that. I think. Um. Thanks very much. Martin