[#409331] Capture HTML table data, pass to Ruby, pass back and display result in HTML text field — Hubert Wagner <lists@...>

Hello :

11 messages 2013/08/04

[#409336] Rakefile Error - Please Help — "Jennifer T." <lists@...>

Hi,

13 messages 2013/08/04
[#409341] Re: Rakefile Error - Please Help — Hassan Schroeder <hassan.schroeder@...> 2013/08/04

On Sun, Aug 4, 2013 at 7:41 AM, Jennifer T. <lists@ruby-forum.com> wrote:

Re: public_methods on a class

From: "Steve S." <lists@...>
Date: 2013-08-02 07:37:03 UTC
List: ruby-talk #409297
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.

Thanks

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

In This Thread