Class: RR::TimesCalledMatchers::ProcMatcher
- Inherits:
-
TimesCalledMatcher
- Object
- TimesCalledMatcher
- RR::TimesCalledMatchers::ProcMatcher
- Includes:
- NonTerminal
- Defined in:
- lib/rr/times_called_matchers/proc_matcher.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from TimesCalledMatcher
Instance Method Summary collapse
Methods included from NonTerminal
#attempt?, #possible_match?, #terminal?
Methods inherited from TimesCalledMatcher
#==, #attempt?, create, #error_message, #initialize
Constructor Details
This class inherits a constructor from RR::TimesCalledMatchers::TimesCalledMatcher
Instance Method Details
#matches?(times_called) ⇒ Boolean
6 7 8 |
# File 'lib/rr/times_called_matchers/proc_matcher.rb', line 6 def matches?(times_called) @times.call(times_called) end |