Sha256: 88bf5058d58587bdb705d0c33b0064418cfed5135ffff2056096701a6f61c379
Contents?: true
Size: 865 Bytes
Versions: 3
Compression:
Stored size: 865 Bytes
Contents
module SplitIoClient # # class to implement the all keys matcher # class AllKeysMatcher < NoMethodError # # evaluates if the key matches the matcher # # @param key [string] key value to be matched # # @return [boolean] true for all instances def match?(key) true end # # evaluates if the given object equals the matcher # # @param obj [object] object to be evaluated # # @returns [boolean] true if obj equals the matcher def equals?(obj) if obj.nil? false elsif self.equal?(obj) true elsif !obj.instance_of?(AllKeysMatcher) false else true end end # # function to print string value for this matcher # # @reutrn [string] string value of this matcher def to_s 'in segment all' end end end
Version data entries
3 entries across 3 versions & 1 rubygems