# File lib/mocha/parameter_matchers/optionally.rb, line 45 def matches?(available_parameters) index = 0 while !available_parameters.empty? && (index < @matchers.length) matcher = @matchers[index] return false unless matcher.matches?(available_parameters) index += 1 end true end