Class: Mocha::ParameterMatchers::AnyParameters

Inherits:
Base
  • Object
show all
Defined in:
lib/mocha/parameter_matchers/any_parameters.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Base

#&, #to_matcher, #|

Instance Method Details

#matches?(available_parameters) ⇒ Boolean

Returns:

  • (Boolean)


25
26
27
28
29
30
# File 'lib/mocha/parameter_matchers/any_parameters.rb', line 25

def matches?(available_parameters)
  while available_parameters.length > 0 do
    available_parameters.shift
  end
  return true
end

#mocha_inspectObject



32
33
34
# File 'lib/mocha/parameter_matchers/any_parameters.rb', line 32

def mocha_inspect
  "any_parameters"
end