class Mocha::ParameterMatchers::Not
Parameter matcher which inverts the logic of the specified matcher using a logical NOT operation.
def initialize(matcher)
- Private: -
def initialize(matcher) @matcher = matcher end
def matches?(available_parameters)
- Private: -
def matches?(available_parameters) parameter = available_parameters.shift !@matcher.matches?([parameter]) end
def mocha_inspect
- Private: -
def mocha_inspect "Not(#{@matcher.mocha_inspect})" end