Class: Spec::Mocks::MatcherConstraint
- Defined in:
- lib/spec/mocks/argument_expectation.rb
Instance Method Summary collapse
-
#initialize(matcher) ⇒ MatcherConstraint
constructor
A new instance of MatcherConstraint.
- #matches?(value) ⇒ Boolean
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
9 10 11 |
# File 'lib/spec/mocks/argument_expectation.rb', line 9 def matches?(value) @matcher.matches?(value) end |