method

kind_of

rspec latest stable - Class: Spec::Mocks::ArgumentMatchers
kind_of(klass)
public

Passes if arg.kind_of?(klass)