Class: RSpec::Mocks::ArgumentMatchers::MatcherMatcher
- Inherits:
-
Object
- Object
- RSpec::Mocks::ArgumentMatchers::MatcherMatcher
- Defined in:
- lib/rspec/mocks/argument_matchers.rb
Instance Method Summary (collapse)
- - (Object) ==(value)
-
- (MatcherMatcher) initialize(matcher)
constructor
A new instance of MatcherMatcher.
Constructor Details
- (MatcherMatcher) initialize(matcher)
A new instance of MatcherMatcher
97 98 99 |
# File 'lib/rspec/mocks/argument_matchers.rb', line 97 def initialize(matcher) @matcher = matcher end |
Instance Method Details
- (Object) ==(value)
101 102 103 |
# File 'lib/rspec/mocks/argument_matchers.rb', line 101 def ==(value) @matcher.matches?(value) end |