Sha256: f75e2760051970352ac71a5c005f329709faef56f48caa65f4d716bcb8c07b19

Contents?: true

Size: 328 Bytes

Versions: 1

Compression:

Stored size: 328 Bytes

Contents

module SplitIoClient
  class SetMatcher
    protected

    def initialize(attribute, remote_array)
      @remote_set = remote_array.to_set
    end

    def local_set(data)
      # Allow user to pass individual elements as well
      local_array = data.kind_of?(Array) ? data : [data]

      local_array.to_set
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
splitclient-rb-4.3.0.canary.2 lib/splitclient-rb/engine/matchers/set_matcher.rb