From: gabriele renzi Date: 2005-06-07T00:40:28+09:00 Subject: Re: How to call a class method when (i.e. in the moment of) inheriting from a class/defining a descendant? Thomas ha scritto: > Does somebody know a solution for how this can be done? see Class#inherited: >> class A >> def self.inherited(klass) >> p "wow I got childs:"+klass.to_s >> end >> end => nil >> class A2 < A >> end "wow I got childs:A2" => nil >> Class.new(A2) "wow I got childs:#" => #