Sha256: 48b4377191a3187e8960d1f95ea4590008a0052ed96e0f6d1cc18697169fd008

Contents?: true

Size: 657 Bytes

Versions: 8

Compression:

Stored size: 657 Bytes

Contents

# encoding: utf-8
#
module Picky

  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
        categories.empty
        process categories do |file|
          notify_finished file
        end
        categories.cache
      end

      def notify_finished file
        timed_exclaim %Q{"#{@index_or_category.identifier}": Tokenized -> #{file.path.gsub("#{PICKY_ROOT}/", '')}.}
      end

    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
picky-3.6.7 lib/picky/indexers/base.rb
picky-3.6.6 lib/picky/indexers/base.rb
picky-3.6.4 lib/picky/indexers/base.rb
picky-3.6.3 lib/picky/indexers/base.rb
picky-3.6.2 lib/picky/indexers/base.rb
picky-3.6.1 lib/picky/indexers/base.rb
picky-3.6.0 lib/picky/indexers/base.rb
picky-3.5.4 lib/picky/indexers/base.rb