module SplitIoClient class PartOfSetMatcher < SetMatcher def self.matcher_type 'PART_OF_SET'.freeze end def initialize(attribute, remote_array) super(attribute, remote_array) end def match?(_matching_key, _bucketing_key, _evaluator, data) @local_set = local_set(data, @attribute) return false if @local_set.empty? @local_set.subset? @remote_set end end end