Sha256: 45d06e49e8c46ffecd61e6447de16f3425d444632b1a33c83a4d704f4d4947c6
Contents?: true
Size: 855 Bytes
Versions: 300
Compression:
Stored size: 855 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) @logger.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
300 entries across 300 versions & 1 rubygems