From: itsme213 Date: 2004-11-11T04:43:29+09:00 Subject: Re: hook for class creation Ah. Considering your suggestion I realized that I really wanted a hook for just when my classes were created. So MyBase#inherited or MyMod#included are good hooks. Thanks! p.s. the solution to my earlier question on clean-up for eval'ing named class definitions in unit tests turned out to be Module#remove_const "Florian Gross" wrote in message news:2vf8hfF2li20bU1@uni-berlin.de... > itsme213 wrote: > > > Is there a hook method called whenever a new class is created i.e. > > guaranteed called for every new instance of Class ? > > You can try Object.inherited, but I'm not sure if it will get called > when a class is created internally in C code. > > Plus it can be overridden in subclasses so there is no 100% guarantee of > it getting called.