Sha256: ae8d0b6bec1bd30e180859c393530f51ed5aed0ddf261611c8fd85fc69622941

Contents?: true

Size: 677 Bytes

Versions: 1

Compression:

Stored size: 677 Bytes

Contents

module Configuration
  class Type
    attr_reader :name,
                :source,
                :result_type,
                :after_indexing,
                :ignore_unassigned_tokens
    def initialize name, source, options
      @name                     = name
      @source                   = source
      
      @result_type              = options[:result_type] || name
      @after_indexing           = options[:after_indexing] # Where do I use this?
      @ignore_unassigned_tokens = options[:ignore_unassigned_tokens] || false # TODO Move to query?
    end
    def generate
      Index::Type.new name, source, result_type, ignore_unassigned_tokens
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
picky-0.11.0 lib/picky/configuration/type.rb