String ends with

suggest change

end_with? reports whether a string ends with a given suffix.

str = "I like pineapples"
str.end_with?("pineapples") # => true
str.end_with?("apples")     # => true
str.end_with?("pineaaples") # => false

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents