Sha256: b15a9d8af8f935437ccd80d8371f055fd1665bdd7dbb3a6ac6f5e83cdef1b4f3

Contents?: true

Size: 372 Bytes

Versions: 62

Compression:

Stored size: 372 Bytes

Contents

module SplitIoClient
  class ContainsAnyMatcher < SetMatcher
    MATCHER_TYPE = 'CONTAINS_ANY'.freeze

    attr_reader :attribute

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

    def match?(args)
      local_set(args[:attributes], @attribute).intersect? @remote_set
    end

    def string_type?
      false
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
splitclient-rb-6.0.1-java lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-6.0.1 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-6.0.1.pre.rc2-java lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-6.0.1.pre.rc2 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-6.0.1.pre.rc1-java lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-6.0.1.pre.rc1 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-6.0.0-java lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-6.0.0 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.1.3.pre.rc4-java lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.1.3.pre.rc4 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.1.3.pre.rc3-java lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.1.3.pre.rc3 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.1.3.pre.rc2-java lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.1.3.pre.rc2 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.1.4.pre.rc1-java lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.1.4.pre.rc1 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.1.3.pre.rc1-java lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.1.3.pre.rc1 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.1.2-java lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.1.2 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb