class Mocha::ParameterMatchers::AllOf

Parameter matcher which combines a number of other matchers using a logical AND.

def initialize(*matchers)

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

def matches?(available_parameters)

Other tags:
    Private: -
def matches?(available_parameters)
  parameter = available_parameters.shift
  @matchers.all? { |matcher| matcher.to_matcher.matches?([parameter]) }
end

def mocha_inspect

Other tags:
    Private: -
def mocha_inspect
  "all_of(#{@matchers.map(&:mocha_inspect).join(', ')})"
end