From: Daniel Schierbeck Date: 2007-01-23T03:50:07+09:00 Subject: Re: Method notation question On Tue, 2007-01-23 at 02:01 +0900, 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 must confess I really like the haystack syntax, especially because it's not valid calling syntax in Ruby, but also because it's very concise. Cheers, Daniel