Skip to content

Instantly share code, notes, and snippets.

@masak
Created September 15, 2009 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masak/187247 to your computer and use it in GitHub Desktop.
Save masak/187247 to your computer and use it in GitHub Desktop.
<masak> is it possible to add a hook in a class that runs whenever that class is
subclassed?
<Sartak> no, but you are welcome to add one
<purl> okay, Sartak.
<Sartak> I added a hook for when a class's superclasses change
<Sartak> so it would probably look similar
<masak> Sartak: any tips on where to start?
<Sartak> Class::MOP::Class::superclasses
<masak> thanks.
<masak> Sartak++
<Sartak> go get em tiger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment