@api private Provides the implementation for `end_with`. Not intended to be instantiated directly.
# File lib/rspec/matchers/built_in/start_or_end_with.rb, line 88 def element_matches? values_match?(expected, actual[-1]) end
# File lib/rspec/matchers/built_in/start_or_end_with.rb, line 84 def subset_matches? values_match?(expected, actual[-expected.length, expected.length]) end