Sha256: 577182b5ce43fbc83138234b9370c0d4b00a0949f181416dca2406a74ba0e668

Contents?: true

Size: 498 Bytes

Versions: 30

Compression:

Stored size: 498 Bytes

Contents

module Nanoc::Int
  # @api private
  class ItemRepBuilder
    attr_reader :reps

    def initialize(site, action_provider, reps)
      @site = site
      @action_provider = action_provider
      @reps = reps
    end

    def run
      @site.items.each do |item|
        @action_provider.rep_names_for(item).each do |rep_name|
          @reps << Nanoc::Int::ItemRep.new(item, rep_name)
        end
      end

      Nanoc::Int::ItemRepRouter.new(@reps, @action_provider, @site).run
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
nanoc-4.2.0b1 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.1.5 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.1.4 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.1.3 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.1.2 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.1.1 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.1.0 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.1.0rc2 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.1.0rc1 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.1.0b1 lib/nanoc/base/services/item_rep_builder.rb