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

On Mon, Dec 1, 2008 at 9:48 PM, Ves P. [email protected]
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?
Does it? Any pointers? Well it is clearly incorrect.

Cheers
R.