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