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