Sha256: c57b8fa65cfa35fe81410d5bfa17b78a4da552a80ce1d42033a34ed34cfe73af

Contents?: true

Size: 472 Bytes

Versions: 2

Compression:

Stored size: 472 Bytes

Contents

module Generators

  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

2 entries across 2 versions & 1 rubygems

Version Path
picky-2.7.0 lib/picky/generators/partial/none.rb
picky-2.6.0 lib/picky/generators/partial/none.rb