Class: Spec::Mocks::ArgumentMatchers::MatcherMatcher

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

Instance Method Summary collapse

Constructor Details

#initialize(matcher) ⇒ MatcherMatcher

Returns a new instance of MatcherMatcher.



106
107
108
# File 'lib/vendor/plugins/rspec/lib/spec/mocks/argument_matchers.rb', line 106

def initialize(matcher)
  @matcher = matcher
end

Instance Method Details

#==(value) ⇒ Object



110
111
112
# File 'lib/vendor/plugins/rspec/lib/spec/mocks/argument_matchers.rb', line 110

def ==(value)
  @matcher.matches?(value)
end