method
matcher_for

1.3.1 -
Show latest stable
-
0 notes -
Class: Spec::Mocks::ArgumentExpectation
- 1.1.4
- 1.1.12
- 1.2.0 (0)
- 1.2.8 (0)
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
matcher_for(arg)
public
Hide source
# File lib/spec/mocks/argument_expectation.rb, line 22 def matcher_for(arg) return ArgumentMatchers::MatcherMatcher.new(arg) if is_matcher?(arg) return ArgumentMatchers::RegexpMatcher.new(arg) if arg.is_a?(Regexp) return ArgumentMatchers::EqualityProxy.new(arg) end