class RSpec::Matchers::BuiltIn::Include

def actual_collection_includes?(expected_item)

Experimental RBS support (using type sampling data from the type_fusion project).

def actual_collection_includes?: (Class expected_item) -> true

This signature was generated using 6 samples from 1 application.

def actual_collection_includes?(expected_item)
  return true if actual.include?(expected_item)
  # String lacks an `any?` method...
  return false unless actual.respond_to?(:any?)
  actual.any? { |value| values_match?(expected_item, value) }
end