class Mocha::ParameterMatchers::Not

Parameter matcher which inverts the logic of the specified matcher using a logical NOT operation.

def initialize(matcher)

Other tags:
    Private: -
def initialize(matcher)
  @matcher = matcher
end

def matches?(available_parameters)

Other tags:
    Private: -
def matches?(available_parameters)
  parameter = available_parameters.shift
  !@matcher.matches?([parameter])
end

def mocha_inspect

Other tags:
    Private: -
def mocha_inspect
  "Not(#{@matcher.mocha_inspect})"
end