From: Ara.T.Howard@... Date: 2005-05-05T08:35:08+09:00 Subject: Re: [RCR] Object#inside_metaclass? On Thu, 5 May 2005, David A. Black wrote: > Hi -- > > On Thu, 5 May 2005 Ara.T.Howard@noaa.gov wrote: > >> jib:~/eg/ruby > cat a.rb >> class Class >> def inside_metaclass? >> self.ancestors.first != self >> end >> end >> >> class << self >> p inside_metaclass? # true >> end > > Isn't that the case we talked about before where you clarified that > you didn't think it should be 'true' for singleton classes in general? > If not, them I'm retroactively confused again about the whole thread > and the use of terminology. lol. i've never heard of anyone being retroactively confused - but i'm sure i am all the time. i think. maybe. i'm not sure. anyways... this is the right __behaviour__ if not the right name. i'll change it to inside_singleton? or something in my source. too bad you can't edit usenet - anyone would think/know i'm a complete dolt if reading this thread! -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | renunciation is not getting rid of the things of this world, but accepting | that they pass away. --aitken roshi ===============================================================================