method

instance_of

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

Passes if arg.instance_of?(klass)