Class: RR::TimesCalledMatchers::AnyTimesMatcher

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

Instance Attribute Summary

Attributes inherited from TimesCalledMatcher

#times

Instance Method Summary collapse

Methods inherited from TimesCalledMatcher

#==, create, #error_message

Constructor Details

#initializeAnyTimesMatcher

Returns a new instance of AnyTimesMatcher.



4
5
# File 'lib/rr/times_called_matchers/any_times_matcher.rb', line 4

def initialize
end

Instance Method Details

#attempt?(times_called) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/rr/times_called_matchers/any_times_matcher.rb', line 15

def attempt?(times_called)
  true
end

#matches?(times_called) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/rr/times_called_matchers/any_times_matcher.rb', line 11

def matches?(times_called)
  true
end

#possible_match?(times_called) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/rr/times_called_matchers/any_times_matcher.rb', line 7

def possible_match?(times_called)
  true
end