From: 7stud -- Date: 2009-08-17T12:49:19+09:00 Subject: start_with? Does someone need a grammar lesson? 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/.