Ara.T.Howard / noaa.gov schrieb:

>
>   class Class
>     def inside_metaclass?
>       inspect =~ %r/^#<Class:/ ? true : false
>     end
>   end
>
>   class Object
>     def inside_metaclass?
>       self.class.inside_metaclass?
>     end
>   end

I see - thats what you call a meta class - actually you
statement seems to be right, just the ancestors implementation
in 1.8 seems to have a bug - try


---
def inside_metaclass?
    false
end

class << Object
    private
    def inside_metaclass?
       true
    end
end
---

/Christoph