From: James Edward Gray II Date: 2006-08-29T02:21:58+09:00 Subject: Re: Reformat Ruby source code in vim? On Aug 28, 2006, at 11:47 AM, Robert Dober wrote: > On 8/28/06, James Edward Gray II 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