module Mocha::ParameterMatchers::InstanceMethods
def to_matcher(expectation: nil, top_level: false)
- Private: -
def to_matcher(expectation: nil, top_level: false) if Base === self self elsif Hash === self && top_level Mocha::ParameterMatchers::PositionalOrKeywordHash.new(self, expectation) else Mocha::ParameterMatchers::Equals.new(self) end end