Class: Nanoc::Core::CompilationPhases::MarkDone
- Includes:
- Nanoc::Core::ContractsSupport
- Defined in:
- lib/nanoc/core/compilation_phases/mark_done.rb
Instance Method Summary collapse
-
#initialize(wrapped:, outdatedness_store:) ⇒ MarkDone
constructor
A new instance of MarkDone.
-
#run(rep, is_outdated:) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
Methods included from Nanoc::Core::ContractsSupport
enabled?, included, setup_once, warn_about_performance
Methods inherited from Abstract
Constructor Details
#initialize(wrapped:, outdatedness_store:) ⇒ MarkDone
Returns a new instance of MarkDone.
9 10 11 12 13 |
# File 'lib/nanoc/core/compilation_phases/mark_done.rb', line 9 def initialize(wrapped:, outdatedness_store:) super(wrapped:) @outdatedness_store = outdatedness_store end |
Instance Method Details
#run(rep, is_outdated:) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
16 17 18 19 |
# File 'lib/nanoc/core/compilation_phases/mark_done.rb', line 16 def run(rep, is_outdated:) # rubocop:disable Lint/UnusedMethodArgument yield @outdatedness_store.remove(rep) end |