Method: Expectation::Matcher#match?
- Defined in:
- lib/expectation/matcher.rb
#match?(value, expectation) ⇒ Boolean
Does a value match an expectation?
37 38 39 40 41 42 |
# File 'lib/expectation/matcher.rb', line 37 def match?(value, expectation) match! value, expectation true rescue Mismatch false end |