Sha256: 7f86c5db8c1ca76d40efa05aa7d80499ad411a9be448eceff454d37b61d9e285
Contents?: true
Size: 472 Bytes
Versions: 92
Compression:
Stored size: 472 Bytes
Contents
module RR module TimesCalledMatchers class RangeMatcher < TimesCalledMatcher #:nodoc: include Terminal def possible_match?(times_called) return true if times_called < @times.begin return true if @times.include?(times_called) return false end def matches?(times_called) @times.include?(times_called) end def attempt?(times_called) possible_match?(times_called) end end end end
Version data entries
92 entries across 88 versions & 9 rubygems