From: ara.t.howard@... Date: 2007-01-23T02:04:35+09:00 Subject: Re: Method notation question On Tue, 23 Jan 2007, Dave Thomas wrote: > > On Jan 22, 2007, at 10:10 AM, Curtis Summers wrote: > >> Isn't this a PickAxe convention to differentiate the class methods >> (MyClass.class_method) from the instance methods >> (MyClass#instance_method)? > > > It predated the PickAxe--it was in a lot of Ruby documentation before that. > > FWIW, I now regret carrying that forward into the book. I think I'd probably > do > > string (in String) > > rather than String#strip if I were doing it again. i like File::class_method File.instance_method the reason is that both work in the shell without funky quoting unlike ri 'File#instance_method' # egads that's a comment! and is consitent with actual calling conventions. using parens wouldn't do ri users any favours i think... 2 cts. -a -- we can deny everything, except that we have the possibility of being better. simply reflect on that. - the dalai lama