From: Carlos Date: 2005-05-05T06:37:45+09:00 Subject: Re: [RCR] Object#inside_metaclass? [Ara.T.Howard@noaa.gov, 2005-05-04 20.44 CEST] > hmm - seems like something like that could work alright... but this fails: [...] > it's not easy... If you don't need to distinguish between singleton classes for classes and normal objects, what's the problem with def inside? self.is_a?(Class) && self.name.empty? self.ancestors.first != self end ?