The part I don’t understand is behaviour of public_methods.
From the docs:
"
If the all parameter is set to false, only those methods in the receiver
will be listed.
"
So, from my understanding, in my example, the Inheritance chain for A
is:
“A < Object”
And B therefore is:
“B < A < Object”
What I don’t understand is why A.public_methods(false) excludes the
public_methods defined on Object, but B.public_methods(false) INCLUDES
the public methods defined on A.