Sha256: 56f43d291d367e0b3d152075b6dc1ccc79c7b0640846fe2cdbb74380e5b10e0b

Contents?: true

Size: 607 Bytes

Versions: 4

Compression:

Stored size: 607 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
        process categories do |file|
          notify_finished file
        end
      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

4 entries across 4 versions & 1 rubygems

Version Path
picky-3.5.3 lib/picky/indexers/base.rb
picky-3.5.2 lib/picky/indexers/base.rb
picky-3.5.1 lib/picky/indexers/base.rb
picky-3.5.0 lib/picky/indexers/base.rb