Sha256: eb8896039ef3dd529a4f4b12b996e732e7bbca0de56e8b6d70a2af955bbb3f91
Contents?: true
Size: 674 Bytes
Versions: 41
Compression:
Stored size: 674 Bytes
Contents
# frozen_string_literal: true 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 action_sequences = Nanoc::Int::ItemRepRouter.new(@reps, @action_provider, @site).run @reps.each do |rep| rep.snapshot_defs = action_sequences[rep].snapshots_defs end action_sequences end end end
Version data entries
41 entries across 41 versions & 1 rubygems