Class: RR::TimesCalledMatchers::IntegerMatcher
Instance Attribute Summary
#times
Instance Method Summary
collapse
Methods included from Terminal
#terminal?
#==, #error_message, #expected_times_message, #initialize
Instance Method Details
#attempt?(times_called) ⇒ Boolean
14
15
16
|
# File 'lib/rr/times_called_matchers/integer_matcher.rb', line 14
def attempt?(times_called)
times_called < @times
end
|
#matches?(times_called) ⇒ Boolean
10
11
12
|
# File 'lib/rr/times_called_matchers/integer_matcher.rb', line 10
def matches?(times_called)
times_called == @times
end
|
#possible_match?(times_called) ⇒ Boolean
6
7
8
|
# File 'lib/rr/times_called_matchers/integer_matcher.rb', line 6
def possible_match?(times_called)
times_called <= @times
end
|