Sha256: 079962729cf16080a7e181bffb1ae5a9ff8da1f9c5f13efe2efd5ce2e63ef0b1
Contents?: true
Size: 431 Bytes
Versions: 19
Compression:
Stored size: 431 Bytes
Contents
module RR module TimesCalledMatchers class RangeMatcher < TimesCalledMatcher 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
19 entries across 19 versions & 1 rubygems