From: mark sparshatt Date: 2005-05-01T18:35:20+09:00 Subject: Re: arg, metaclass bug found? Robert Klemme wrote: > > schrieb im Newsbeitrag > news:200504300320.j3U3KaYY017937@sharui.nakada.niregi.kanuma.tochigi.jp... > >> Hi, >> >> At Sat, 30 Apr 2005 11:29:27 +0900, >> Lionel Thiry wrote in [ruby-talk:140557]: >> >>> Test2 < Test1 # => true >>> >>> # the bug is here >>> Test2.meta < Test1.meta # => nil >>> # it should have benn true instead of nil >> >> >> true is returned in 1.9. > > > Hm, why is that? What do the singleton classes of Test2 and Test1 have > in common? This surprises me... > According to the Pickaxe if Test2 is a subclass of Test1 then Test2.meta should be a subclass of Test1.meta Entering Test2.meta.superclass #=> # -- Mark Sparshatt