Jeff Schwab
1/28/2006 6:03:00 PM
James Edward Gray II wrote:
> On Jan 28, 2006, at 3:52 AM, Eero Saynatkari wrote:
>
>> On 2006.01.28 18:39, Alex Combas wrote:
>>
>>> Something like this, but better.
>>>
>>> `Foo.new.methods - Object.methods`
>>
>>
>> As a workaround, you can do this:
>>
>> class << foo; self; end.instance_methods false
>
>
> Do we really need a singleton class for that? I prefer:
>
> self.class.instance_methods(false)
Wow. I'm still new to Ruby, but I've gotta say, I am rapidly becoming
more enthusiastic.