Martin Coxall
9/28/2006 10:36:00 PM
> 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