Class: Nanoc::Core::CompilationStages::Postprocess

Inherits:
Nanoc::Core::CompilationStage show all
Includes:
Nanoc::Core::ContractsSupport
Defined in:
lib/nanoc/core/compilation_stages/postprocess.rb

Instance Method Summary collapse

Methods included from Nanoc::Core::ContractsSupport

enabled?, included, setup_once, warn_about_performance

Methods inherited from Nanoc::Core::CompilationStage

#call

Constructor Details

#initialize(action_provider:, site:) ⇒ Postprocess

Returns a new instance of Postprocess.



9
10
11
12
# File 'lib/nanoc/core/compilation_stages/postprocess.rb', line 9

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

Instance Method Details

#run(compiler) ⇒ Object



15
16
17
# File 'lib/nanoc/core/compilation_stages/postprocess.rb', line 15

def run(compiler)
  @action_provider.postprocess(@site, compiler)
end