class SplitIoClient::NegationMatcher
class to implement the negation of a matcher
def attribute
def attribute @matcher.attribute end
def initialize(logger, matcher = nil)
def initialize(logger, matcher = nil) super(logger) @matcher = matcher end
def match?(args)
-
(boolean)- evaluation of the negation matcher
Parameters:
-
key(string) -- key value to be matched
def match?(args) matches = !@matcher.match?(args) @logger.log_if_debug("[NegationMatcherMatcher] Matcher #{@matcher} Arguments #{args} -> #{matches}") matches end
def respond_to?(method)
def respond_to?(method) @matcher.respond_to? method end
def string_type?
def string_type? @matcher.string_type? end
def to_s
-
(string)- string value of this matcher
def to_s "not #{@matcher}" end