From: Joel VanderWerf Date: 2008-05-02T01:32:43+09:00 Subject: Re: inherited behaviour. Peter Morris wrote: > Folks, would there be any DOWNSIDE to the call to the parents INHERITED > method being deferred from the start to the end of the definition of the > subclass? > > At the moment if you... > > class A > def self.inherited klass > end > end > > class B < A # this is point (1) > def self.some_method > end > end # this is point (2) > > at point (1), the inherited call on A happens. > Now, what I want to know is.... would there be a problem if this was > deferred to point(2) Ruby classes are never closed, so there is no significant point (2), just an arbitrary snapshot in the continuing definition of class B. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407