From: Robert Dober Date: 2006-08-29T04:12:19+09:00 Subject: Re: Reformat Ruby source code in vim? ------=_Part_179905_13446072.1156792336061 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 12:26 PM, Robert Dober wrote: > > > 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 ;) > > Not at all. That's why I said "singleton class" in the first place. Sorry explanation below... Hey man, all this singleton class stuff is just finally starting to > sink into my brain, don't set me back on the path to enlightenment! ;) ok, ok, I 'll try to learn ;) James Edward Gray II > > > Hmm I was just kidding, thaught you were etc. Now @flags[:serious] =3D true I think I read you know. Do you mean when defining def Foo.x it does not matter if Foo is a class or anyting else, the "singleton method= " is defined on behalf of the "Object"? As it is Object#methods and not Class#methods I was calling in my funny cod= e above. I was not aware of that. Thanks Robert --=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_179905_13446072.1156792336061--