Hi,

I have some confusion with "ancestor" method.

Can you help me out to clear the concept?

class A
end

A.ancestors # => [A, Object, Kernel, BasicObject] <~~ Here why came? I 
actually expect the output as below one.

A.class.ancestors # => [Class, Module, Object, Kernel, BasicObject]

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