From: Robert Dober Date: 2006-08-29T02:26:21+09:00 Subject: Re: Reformat Ruby source code in vim? ------=_Part_176725_13188094.1156785978839 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 8/28/06, James Edward Gray II wrote: > > 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: lucky escape ;) >> class Foo > >> foo =3D Foo > >> def foo.method_name > >> end > >> end > =3D> nil > >> Foo.singleton_methods > =3D> ["method_name"] > > James Edward Gray II > > --=20 Deux choses sont infinies : l'univers et la b=EAtise humaine ; en ce qui concerne l'univers, je n'en ai pas acquis la certitude absolue. - Albert Einstein ------=_Part_176725_13188094.1156785978839--