Sha256: 74f2ce6197005e4ce559d9c8619d11e4c2bfbd2295dc0b7679769bfa35fc9868

Contents?: true

Size: 472 Bytes

Versions: 9

Compression:

Stored size: 472 Bytes

Contents

module Cacher

  module Partial

    # Does not generate a partial index.
    #
    class None < Strategy

      # Returns an empty index.
      #
      def generate_from index
        {}
      end
      
      # Returns if this strategy's generated file is saved.
      #
      def saved?
        false
      end
      
      # Do not use the partial bundle for getting ids and weights.
      #
      def use_exact_for_partial?
        true
      end

    end

  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
picky-1.4.1 lib/picky/cacher/partial/none.rb
picky-1.4.0 lib/picky/cacher/partial/none.rb
picky-1.3.4 lib/picky/cacher/partial/none.rb
picky-1.3.3 lib/picky/cacher/partial/none.rb
picky-1.3.2 lib/picky/cacher/partial/none.rb
picky-1.3.1 lib/picky/cacher/partial/none.rb
picky-1.3.0 lib/picky/cacher/partial/none.rb
picky-1.2.4 lib/picky/cacher/partial/none.rb
picky-1.2.3 lib/picky/cacher/partial/none.rb