Class: Spec::Mocks::MatcherConstraint

Inherits:
Object
  • Object
show all
Defined in:
lib/spec/mocks/argument_expectation.rb

Instance Method Summary collapse

Constructor Details

#initialize(matcher) ⇒ MatcherConstraint

Returns a new instance of MatcherConstraint.



5
6
7
# File 'lib/spec/mocks/argument_expectation.rb', line 5

def initialize(matcher)
  @matcher = matcher
end

Instance Method Details

#matches?(value) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/spec/mocks/argument_expectation.rb', line 9

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