class Mocha::ParameterMatchers::Base
@abstract Subclass and implement #matches?
and #mocha_inspect
to define a custom matcher. Also add a suitably named instance method to {ParameterMatchers} to build an instance of the new matcher c.f. {#equals}.
def &(other)
- Example: Alternative ways to combine matchers with a logical AND. -
Other tags:
- See: Expectation#with -
Returns:
-
(AllOf)
- parameter matcher.
Parameters:
-
other
(Base
) -- parameter matcher.
def &(other) AllOf.new(self, other) end
def |(other)
- Example: Using an explicit {Equals} matcher in combination with {#|}. -
Example: Alternative ways to combine matchers with a logical OR. -
Other tags:
- See: Expectation#with -
Returns:
-
(AnyOf)
- parameter matcher.
Parameters:
-
other
(Base
) -- parameter matcher.
def |(other) AnyOf.new(self, other) end