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.4.4 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.4.3 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.4.2 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.4.1 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.4.0 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.3.8 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.3.7 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.3.6 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.3.5 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.3.4 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.3.3 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.3.2 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.3.1 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.3.0 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.2.4 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.2.3 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.2.2 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.2.1 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.2.0 lib/nanoc/base/services/item_rep_builder.rb
nanoc-4.1.6 lib/nanoc/base/services/item_rep_builder.rb