From: matz@... (Yukihiro Matsumoto) Date: 2004-01-23T11:39:06+09:00 Subject: Re: Class.new and inspect Hi, In message "Class.new and inspect" on 04/01/23, Hal Fulton writes: |Perhaps even more perplexing: | | irb(main):007:0> A = B = C = Class.new(Hash) | => B | irb(main):008:0> x = C.new | => {} | irb(main):009:0> x.class | => B | |What? Not A or C, the first or last, but B? When inspecting unnamed class, Ruby look around the constants for the name of the class, B this case is found first. matz.