module Mocha::ParameterMatchers::BaseMethods

def &(other)

Other tags:
    Example: Alternative ways to combine matchers with a logical AND. -

Other tags:
    See: Expectation#with -

Returns:
  • (AllOf) - parameter matcher.

Parameters:
  • other (BaseMethods) -- parameter matcher.
def &(other)
  AllOf.new(self, other)
end

def |(other)

Other tags:
    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 (BaseMethods) -- parameter matcher.
def |(other)
  AnyOf.new(self, other)
end