On Aug 28, 2006, at 11:47 AM, Robert Dober wrote:

> On 8/28/06, James Edward Gray II <james / grayproductions.net> wrote:
>>
>> On Aug 28, 2006, at 10:42 AM, Robert Retzbach wrote:
>>
>> > It would be interesting to see how textmate does this, cause I  
>> can't
>> > think of a way to determine whether foo.method_name is an instance
>> > method or a class method for example.
>>
>> def foo.method_name... is always a singleton class method, isn't  
>> it?  ;)
>
>
> I am afraid it might be a class method

A class method is a singleton method on a class:

 >> class Foo
 >>   foo = Foo
 >>   def foo.method_name
 >>   end
 >> end
=> nil
 >> Foo.singleton_methods
=> ["method_name"]

James Edward Gray II