Class: RSpec::Mocks::ArgumentMatchers::MatcherMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/mocks/argument_matchers.rb

Instance Method Summary (collapse)

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