Bug #2793: inherited hook now runs before Class.new block
http://redmine.ruby-lang.org/issues/show/2793

Author: Jeremy Kemper
Status: Open, Priority: Normal
Category: core, Target version: Ruby 1.8.8
ruby -v: ruby 1.8.8dev (2010-02-24 revision 26634) [i386-darwin10.2.0]

>> class A; def self.inherited(foo) foo.bar end end
=> nil
>> Class.new(A) { def self.bar; 'bar' end }

# 1.8.7
=> #<Class:0x1003452f0>

# 1.8.8 (regression or backport?)
NoMethodError: undefined method `bar' for #<Class:0x1003470a0>

# 1.9.2
NoMethodError: undefined method `bar' for #<Class:0x0000010107daa8>


----------------------------------------
http://redmine.ruby-lang.org