class RSpec::Matchers::BuiltIn::StartOrEndWith

def match(_expected, actual)

def match(_expected, actual)
  return false unless actual.respond_to?(:[])
  begin
    return true if subsets_comparable? && subset_matches?
    element_matches?
  rescue ArgumentError
    @actual_does_not_have_ordered_elements = true
    return false
  end
end