Does Ruby have a some_string.starts_with(\"abc\") method that\'s built in?
some_string.starts_with(\"abc\")
If this is for a non-Rails project, I'd use String#index:
String#index
"foobar".index("foo") == 0 # => true