From: Robert Dober Date: 2006-08-29T01:47:08+09:00 Subject: Re: Reformat Ruby source code in vim? ------=_Part_175948_30236473.1156783624196 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 look at this code class Foo foo = Foo # auch def foo.method_name ... end Foo.methods.grep "method_name" Ruby is full of surprises ;) Cheers Robert James Edward Gray II > > > ------=_Part_175948_30236473.1156783624196--