From: Vincent Fourmond Date: 2006-09-27T22:38:46+09:00 Subject: Re: String starts? and ends? methods Dirk Meijer wrote: > to be honest, i don't really think this is that useful. > what wrong with > > string=~/^start/ > string=~/end$/ > > this seems to be self-explanatory enough. For the Regexp-friendly users... In my opinion, a part of Ruby's coolness is that you have quite a lot of ways to say similar things, which leaves you to chose the most readable for the code at hand (and for your own eyes). I don't expect having another method for String will cause a huge performance drop ;-)... And I definitely think some code will look easier to read with that. Cheers ! Vince