Object private methods


#1

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


#2

On Mon, Dec 1, 2008 at 9:48 PM, Ves P. removed_email_address@domain.invalid
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.