Sha256: 324e625f99c16fbefda5bdbf214fd9021d76735f6e1b5b9a0c0d4bf258dcf212
Contents?: true
Size: 859 Bytes
Versions: 28
Compression:
Stored size: 859 Bytes
Contents
# frozen_string_literal: true module SplitIoClient # # class to implement the all keys matcher # class AllKeysMatcher < Matcher MATCHER_TYPE = 'ALL_KEYS' # # evaluates if the key matches the matcher # # @return [boolean] true for all instances def match?(_args) SplitLogger.log_if_debug('[AllKeysMatcher] is always -> true') true end # # evaluates if the given object equals the matcher # # @param obj [object] object to be evaluated # # @return [boolean] true if obj equals the matcher def equals?(obj) if obj.instance_of?(AllKeysMatcher) true else super(obj) end end # # function to print string value for this matcher # # @return [string] string value of this matcher def to_s 'in segment all' end end end
Version data entries
28 entries across 28 versions & 1 rubygems