class RSpec::Matchers::BuiltIn::EndWith

@api private Provides the implementation for `end_with`. Not intended to be instantiated directly.

Private Instance Methods

element_matches?() click to toggle source
# File lib/rspec/matchers/built_in/start_or_end_with.rb, line 88
def element_matches?
  values_match?(expected, actual[-1])
end
subset_matches?() click to toggle source
# 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