From: ara.t.howard@... Date: 2006-11-08T12:01:26+09:00 Subject: Re: Can't bind a singleton method to a subclass? On Wed, 8 Nov 2006 dblack@wobblini.net wrote: > The fact that B can call A.class_method is due to the special-casing of > singleton classes of Class objects; it's the one case where a given object > can execute singleton methods of another object. But those singleton > methods still belong, unambiguously, to the first object, A. The reason B > can call them is that A's singleton class serves as the superclass of B's > singleton class -- so class_method lies on the method look-up path of B. > But class_method is still defined only in A's singleton class. still, quiet odd that one can do this >> p B.method(:class_method).unbind meaning, it's strange that you can 'unbind' from a class something which cannot be bound to it and yet must have been for the initial call to 'unbind' to succeed - a contradiction. interesting. -a -- my religion is very simple. my religion is kindness. -- the dalai lama