= private = protected
ends_with?(suffix)
Does the string end with the specified suffix?
# File activesupport/lib/active_support/core_ext/string/starts_ends_with.rb, line 27 def ends_with?(suffix) suffix.respond_to?(:to_str) && self[-suffix.length, suffix.length] == suffix end