class RSpec::Matchers::BuiltIn::BeAnInstanceOf

@api private Provides the implementation for `be_an_instance_of`. Not intended to be instantiated directly.

Public Instance Methods

description() click to toggle source

@api private @return [String]

# File lib/rspec/matchers/built_in/be_instance_of.rb, line 11
def description
  "be an instance of #{expected}"
end

Private Instance Methods

match(expected, actual) click to toggle source
# File lib/rspec/matchers/built_in/be_instance_of.rb, line 17
def match(expected, actual)
  actual.instance_of? expected
end