You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: be_instance_of.rb
    path of file: ./repos/rspec-expectations/lib/rspec/matchers/built_in
    
    the code of the file until where you have to start completion: module RSpec
  module Matchers
    module BuiltIn
      # @api private
     
    
        def match(expected, actual)
          actual.instance_of?(expected)
        rescue NoMethodError
          raise ::ArgumentError, "The #{matcher_name} matcher requires that " \
                                 "the actual object responds to #instance_of? method " \
                                 "but a `NoMethodError` was encountered instead."
        end