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
- #expected_times_message ⇒ Object
-
#initialize ⇒ AnyTimesMatcher
constructor
A new instance of AnyTimesMatcher.
- #matches?(times_called) ⇒ Boolean
Methods included from NonTerminal
#attempt?, #possible_match?, #terminal?
Methods inherited from TimesCalledMatcher
#==, #attempt?, #error_message
Constructor Details
#initialize ⇒ AnyTimesMatcher
Returns 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
#expected_times_message ⇒ Object
13 14 15 |
# File 'lib/rr/times_called_matchers/any_times_matcher.rb', line 13 def "any number of times" end |
#matches?(times_called) ⇒ Boolean
9 10 11 |
# File 'lib/rr/times_called_matchers/any_times_matcher.rb', line 9 def matches?(times_called) true end |