ara.t.howard / noaa.gov wrote:
> 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.

Ick.

> 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.

The obvious solution is to modify irb so that it understands that
notation. :)

Knowing Mauricio, he's probably already done it. ;)

Regards,

Dan