class Mocha::ParameterMatchers::AnyOf
Parameter matcher which combines a number of other matchers using a logical OR.
def initialize(*matchers)
- Private:   -   
 
def initialize(*matchers) @matchers = matchers end
def matches?(available_parameters)
- Private:   -   
 
def matches?(available_parameters) parameter = available_parameters.shift @matchers.any? { |matcher| matcher.to_matcher.matches?([parameter]) } end
def mocha_inspect
- Private:   -   
 
def mocha_inspect "any_of(#{@matchers.map(&:mocha_inspect).join(', ')})" end