Class: RR::TimesCalledMatchers::ProcMatcher

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

Overview

:nodoc:

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, #expected_times_message, #initialize

Constructor Details

This class inherits a constructor from RR::TimesCalledMatchers::TimesCalledMatcher

Instance Method Details

#matches?(times_called) ⇒ Boolean



6
7
8
# File 'lib/rr/times_called_matchers/proc_matcher.rb', line 6

def matches?(times_called)
  @times.call(times_called)
end