Class: Nanoc::Core::CompilationStage
- Inherits:
-
Object
- Object
- Nanoc::Core::CompilationStage
- Defined in:
- lib/nanoc/core/compilation_stage.rb
Instance Method Summary collapse
Instance Method Details
#call(*args) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/nanoc/core/compilation_stage.rb', line 6 def call(*args) notify(:stage_started) res = Nanoc::Core::Instrumentor.call(:stage_ran, self.class) do run(*args) end notify(:stage_ended) res rescue notify(:stage_aborted) raise end |
#run ⇒ Object
18 19 20 |
# File 'lib/nanoc/core/compilation_stage.rb', line 18 def run(*) raise NotImplementedError end |