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: field_factory.rb
    path of file: ./repos/sunspot/sunspot/lib/sunspot
    
    the code of the file until where you have to start completion: module Sunspot
  # 
  # The FieldFactory module contains classes for generati
    
      def initialize(name, options = {}, &block)
        @name = name.to_sym
        @data_extractor =
          if block
            DataExtractor::BlockExtractor.new(&block)
          else
            DataExtractor::AttributeExtractor.new(options.delete(:using) || name)
          end