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 #<Class:0xb523e0>
> Definition of #<Class:0xb523e0>
> 
> 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 #<Class:0x7fa787968d00>
A was inherited by #<Class:0x7fa787968d00>