Sha256: 59858112d7f28375673f36fd3de0a59785857ffa4cc88cf6d19756d7c23c1a49
Contents?: true
Size: 439 Bytes
Versions: 62
Compression:
Stored size: 439 Bytes
Contents
# frozen_string_literal: true module SplitIoClient class ContainsAnyMatcher < SetMatcher MATCHER_TYPE = 'CONTAINS_ANY' attr_reader :attribute def match?(args) matches = local_set(args[:attributes], @attribute).intersect? @remote_set @logger.log_if_debug("[ContainsAnyMatcher] Remote Set #{@remote_set} contains any \ #{@attribute} or #{args[:attributes]}-> #{matches}") matches end end end
Version data entries
62 entries across 62 versions & 1 rubygems