Class: RR::TimesCalledMatchers::AnyTimesMatcher
- Inherits:
-
TimesCalledMatcher
- Object
- TimesCalledMatcher
- RR::TimesCalledMatchers::AnyTimesMatcher
- Includes:
- NonTerminal
- Defined in:
- lib/rr/times_called_matchers/any_times_matcher.rb
Instance Attribute Summary
Attributes inherited from TimesCalledMatcher
Instance Method Summary (collapse)
- - (Object) expected_times_message
-
- (AnyTimesMatcher) initialize
constructor
A new instance of AnyTimesMatcher.
- - (Boolean) matches?(times_called)
Methods included from NonTerminal
#attempt?, #possible_match?, #terminal?
Methods inherited from TimesCalledMatcher
#==, #attempt?, #error_message
Constructor Details
- (AnyTimesMatcher) initialize
A new instance of AnyTimesMatcher
6 7 |
# File 'lib/rr/times_called_matchers/any_times_matcher.rb', line 6 def initialize end |
Instance Method Details
- (Object) expected_times_message
13 14 15 |
# File 'lib/rr/times_called_matchers/any_times_matcher.rb', line 13 def "any number of times" end |
- (Boolean) matches?(times_called)
9 10 11 |
# File 'lib/rr/times_called_matchers/any_times_matcher.rb', line 9 def matches?(times_called) true end |