Class: Spec::Mocks::ArgumentMatchers::MatcherMatcher
- Defined in:
- lib/spec/mocks/argument_matchers.rb
Instance Method Summary collapse
- #==(value) ⇒ Object
-
#initialize(matcher) ⇒ MatcherMatcher
constructor
A new instance of MatcherMatcher.
Constructor Details
#initialize(matcher) ⇒ MatcherMatcher
Returns a new instance of MatcherMatcher.
102 103 104 |
# File 'lib/spec/mocks/argument_matchers.rb', line 102 def initialize(matcher) @matcher = matcher end |
Instance Method Details
#==(value) ⇒ Object
106 107 108 |
# File 'lib/spec/mocks/argument_matchers.rb', line 106 def ==(value) @matcher.matches?(value) end |