From: Joel VanderWerf Date: 2010-07-09T02:52:48+09:00 Subject: [ruby-core:31130] Re: Why is the inherited callback invoked at different times for static vs. dynamic subclasses? Masaya TARUI wrote: > Hi Jacob, > > I cannot reporduse. > >> ruby -v inherited.rb > ruby 1.9.2dev (2010-07-06 revision 28549) [i386-mswin32_90] > A was inherited by B > Definition of B > A was inherited by # > Definition of # > > Please paste the result of ruby -v. 1.8.7p299 seems to have the strangeness: $ cat inherited.rb class A def self.inherited(subclass) puts "A was inherited by #{subclass}" end end class B < A puts "Definition of #{self}" end C = Class.new(A) do puts "Definition of #{self}" end $ ruby -v inherited.rb ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux] A was inherited by B Definition of B Definition of # A was inherited by #