On 2006.01.28 18:39, Alex Combas wrote:
> Hello,
> Tonight I was thinking that it would be handy to
> have a way to list all the methods in a class but
> not list any of the standard methods that it inherits
> from its parent object enless they have been added
> to by the class in question.
> 
> Something like this, but better.
> 
> `Foo.new.methods - Object.methods`

As a workaround, you can do this:

  class << foo; self; end.instance_methods false

> For example if Foo reimplenents .to_s then I would like to know about it.
> 
> Alex Combas


E