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