class Mocha::ParameterMatchers::KindOf

Parameter matcher which matches when actual parameter is a kind of specified class.

def initialize(klass)

Other tags:
    Private: -
def initialize(klass)
  @klass = klass
end

def matches?(available_parameters)

Other tags:
    Private: -
def matches?(available_parameters)
  parameter = available_parameters.shift
  # rubocop:disable Style/ClassCheck
  parameter.kind_of?(@klass)
  # rubocop:enable Style/ClassCheck
end

def mocha_inspect

Other tags:
    Private: -
def mocha_inspect
  "kind_of(#{@klass.mocha_inspect})"
end