module Mocha::ParameterMatchers::InstanceMethods
@private
Public Instance Methods
Source
# File lib/mocha/parameter_matchers/instance_methods.rb, line 10 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
@private