From: dblack@... Date: 2006-09-27T22:40:29+09:00 Subject: Re: String starts? and ends? methods Hi -- On Wed, 27 Sep 2006, Devin Mullins wrote: > Yukihiro Matsumoto wrote: >> Makes sense. It was just honoring the origin (this case Python). >> Since they are young (I just added it last week), it is fairly easy to >> change the names. Any opinion? > My English-fu has me prefer starts_with? to start_with?, but general Ruby > convention seems to be not to conjugate the verbs, so I'll just vote what > everybody else is voting. It's a little inconsistent: obj.respond_to? # second person obj.is_a? # third person But I think second person is the most common. Or maybe are_a? just sounded too weird :-) David -- David A. Black | dblack@wobblini.net Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4] [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org