Object private methods

Consider the following,

class X
end

X.private_methods == Object.private_methods. Since X implicitly extends
Object, then how does X inherit Object's private methods, since the
documentation states that Subclasses inherit non-private methods only?

TIA,
ves

···

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

Does it? Any pointers? Well it is clearly incorrect.

Cheers
R.

···

On Mon, Dec 1, 2008 at 9:48 PM, Ves Pasian <keepitsimple222@yahoo.com> wrote:

Consider the following,

class X
end

X.private_methods == Object.private_methods. Since X implicitly extends
Object, then how does X inherit Object's private methods, since the
documentation states that Subclasses inherit non-private methods only?