[Nuby] Detecting when a class is inherited

C

CT

Hi 'talk,
Is there any way to detect when a class is inherited? I.e, I wanna
know in the base class when some class inherits from it. I seem to
remember there was some sort of hook for this purpose(it could be just
me, too)

Anyone?

TIA
-Shajith.
 
Y

Yukihiro Matsumoto

Hi,

In message "Re: [Nuby] Detecting when a class is inherited"

|Is there any way to detect when a class is inherited? I.e, I wanna
|know in the base class when some class inherits from it. I seem to
|remember there was some sort of hook for this purpose(it could be just
|me, too)

class Derived<Base
end

would call "Base.inherited(Derived)".

matz.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,188
Messages
2,571,003
Members
47,597
Latest member
TuyetKinne

Latest Threads

Top