Sha256: 6c40ced61593af13e2c54859a0a7b124aa4b432982a247f270effba61452daaf

Contents?: true

Size: 589 Bytes

Versions: 1

Compression:

Stored size: 589 Bytes

Contents

# encoding: utf-8
#
module Indexers

  #
  #
  class Base

    attr_reader :index_or_category

    delegate :source, :to => :index_or_category

    def initialize index_or_category
      @index_or_category = index_or_category
    end

    # Starts the indexing process.
    #
    def index categories
      start_indexing_message
      prepare categories
      process categories
      finish_indexing_message
    end

    # By default, an indexer
    #  * prepares the index directories.
    #
    def prepare categories
      categories.each &:prepare_index_directory
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
picky-2.7.0 lib/picky/indexers/base.rb