Class: RR::TimesCalledMatchers::AnyTimesMatcher

Inherits:
TimesCalledMatcher show all
Includes:
NonTerminal
Defined in:
lib/rr/times_called_matchers/any_times_matcher.rb

Instance Attribute Summary

Attributes inherited from TimesCalledMatcher

#times

Instance Method Summary (collapse)

Methods included from NonTerminal

#attempt?, #possible_match?, #terminal?

Methods inherited from TimesCalledMatcher

#==, #attempt?, #error_message

Constructor Details

- (AnyTimesMatcher) initialize



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 expected_times_message
  "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