Sha256: c42dddd1b49885f28f4321e6b0c4521cdfd33a4c7d1b9577908d10c3735208fc

Contents?: true

Size: 316 Bytes

Versions: 3

Compression:

Stored size: 316 Bytes

Contents

module SplitIoClient
  class ContainsAnyMatcher < SetMatcher
    def self.matcher_type
      'CONTAINS_ANY'.freeze
    end

    def initialize(attribute, remote_array)
      super(attribute, remote_array)
    end

    def match?(_key, data)
      local_set(data, @attribute).intersect? @remote_set
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
splitclient-rb-4.1.0 lib/engine/matchers/contains_any_matcher.rb
splitclient-rb-4.1.0.pre.rc2 lib/engine/matchers/contains_any_matcher.rb
splitclient-rb-4.1.0.pre.rc1 lib/engine/matchers/contains_any_matcher.rb