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: base.rb
    path of file: ./repos/chewy/lib/chewy/index/adapter
    
    the code of the file until where you have to start completion: module Chewy
  class Index
    module Adapter
      # Basic adapter class. Contains interface, need to implement to a
    
        def delete_from_index?(object)
          delete_if = options[:delete_if]
          delete ||= case delete_if
          when Symbol, String
            object.send delete_if
          when Proc
            delete_if.arity == 1 ? delete_if.call(object) : object.instance_exec(&delete_if)
          end