module RSpec::Matchers
def end_with(*expected)
expect([0, 1, 2, 3, 4]).to end_with 4
expect("this string").to end_with "string"
@example
`expected.length` elements of the actual array.
actual string. In the case of an array, matches against the last
of a string, matches against the last `expected.length` characters of the
Matches if the actual value ends with the expected value(s). In the case
def end_with(*expected) BuiltIn::EndWith.new(*expected) end