Re: String#starts_with?

String#index should be the fastest

thanks. any suggestions for #ends_with?

If the above is correct, String#rindex.

Best regards,
Axel

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs