uncutstone wu wrote:


> 
> puts AClass.metaclass.class
> puts AClass.metaclass.superclass
> puts AClass.metaclass.ancestors
> 
> the result:
>   Class
>   #<Class:Object>
>   Class
>   Module
>   Object
>   Kernel

Can somebody explain:
  Why AClass.metaclass.superclass gets "#<Class:Object>"?
  Why AClass.metaclass.ancestors  gets "[Class,Module,Object,Kernel]"? 
Acctually, I                    understand this one.
  Why ancestor's doesn't include superclass?

Thanks in advance.

uncutstone

-- 
Posted via http://www.ruby-forum.com/.