Sha256: e919cbd19063daa9ca08a3cfc83426dde78bd8d8bdb700c1c1898a91c4129fef
Contents?: true
Size: 641 Bytes
Versions: 1
Compression:
Stored size: 641 Bytes
Contents
module Nanoc::Int # @api private class Postprocessor def initialize(context, site:, rules_collection:) @context = context @site = site @rules_collection = rules_collection end def run ctx = new_postprocessor_context @rules_collection.postprocessors.each_value do |postprocessor| ctx.instance_eval(&postprocessor) end end # @api private def new_postprocessor_context Nanoc::Int::Context.new( config: Nanoc::ConfigView.new(@site.config, @context), items: Nanoc::PostCompileItemCollectionView.new(@site.items, @context), ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.1.0a1 | lib/nanoc/base/services/postprocessor.rb |