From: Tom Sawyer Date: 2002-07-11T06:33:48+09:00 Subject: Re: Resurrection of the const_added (was class_added) RCR; Re: self_parent On Wed, 2002-07-10 at 14:32, David Alan Black wrote: > class OuterClass > def const_added(name,value) # or something > ... > end > NEW_CONSTANT = 1 # const_added called here > end > > If so, how would this interact with inner classes? i can almost see it: class OuterClass def OuterClass.const_added(id) # how to use id # to add an instance variable # to this identified object # of type OuterClass? ... end class InnerClass ... end def initialize ic = InnerClass.new # this will triger const_added ? end end yea, i'm a bit confused too. ~transami