Sha256: 23595602ef6e6488beb2b54ec43e3628edfebb872c51fd8e1f9ec863cb4f1094

Contents?: true

Size: 549 Bytes

Versions: 132

Compression:

Stored size: 549 Bytes

Contents

module Picky

  module Generators

    module Partial

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

        # Yields each generated partial.
        #
        def each_partial token
          # yields nothing
        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

end

Version data entries

132 entries across 132 versions & 1 rubygems

Version Path
picky-3.6.8 lib/picky/generators/partial/none.rb
picky-3.6.7 lib/picky/generators/partial/none.rb
picky-3.6.6 lib/picky/generators/partial/none.rb
picky-3.6.4 lib/picky/generators/partial/none.rb
picky-3.6.3 lib/picky/generators/partial/none.rb
picky-3.6.2 lib/picky/generators/partial/none.rb
picky-3.6.1 lib/picky/generators/partial/none.rb
picky-3.6.0 lib/picky/generators/partial/none.rb
picky-3.5.4 lib/picky/generators/partial/none.rb
picky-3.5.3 lib/picky/generators/partial/none.rb
picky-3.5.2 lib/picky/generators/partial/none.rb
picky-3.5.1 lib/picky/generators/partial/none.rb