From: Nilesh Trivedi Date: 2009-08-19T02:06:10+09:00 Subject: Re: start_with? Does someone need a grammar lesson? Think of it as a question in second-person. As: Hey str, do you start_with "hello" ? cheers nilesh http://nileshtrivedi.in On Mon, Aug 17, 2009 at 9:19 AM, 7stud -- wrote: > String#start_with?------------------------------- > >     str.start_with?([prefix]+)   => true or false > >     From Ruby 1.9.1 > ------------------------------------------------ >     Returns true if _str_ starts with the prefix given. > > > Whoever wrote the docs doesn't: > > Returns true if _str_ **starts with** the prefix given.  I find it so > jarring to read: > > if mystring.start_with?("bad grammar") > > I'm hesitant to use start_with?() in my code.  It makes me look > uneducated. :( > -- > Posted via http://www.ruby-forum.com/. > >