Sha256: 29be8462f021955579577e1ee5959553e915e98dc7de163d0b2598cf78e94c60
Contents?: true
Size: 428 Bytes
Versions: 5
Compression:
Stored size: 428 Bytes
Contents
# frozen_string_literal: true module Recollect::Array module Contains def self.check!(item, iteratee, value) fetched_value = Utility::TryFetchOrBlank[item, iteratee] return false unless fetched_value Array(value).any? { |v| fetched_value.to_s.match(/#{v}/) } end end module NotContains def self.check!(item, iteratee, value) !Contains.check!(item, iteratee, value) end end end
Version data entries
5 entries across 5 versions & 1 rubygems