Class: Nanoc::Int::Compiler::Phases::MarkDone
- Defined in:
- lib/nanoc/base/services/compiler/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 inherited from Abstract
Constructor Details
#initialize(wrapped:, outdatedness_store:) ⇒ MarkDone
Returns a new instance of MarkDone
7 8 9 10 11 |
# File 'lib/nanoc/base/services/compiler/phases/mark_done.rb', line 7 def initialize(wrapped:, outdatedness_store:) super(wrapped: wrapped) @outdatedness_store = outdatedness_store end |
Instance Method Details
#run(rep, is_outdated:) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
14 15 16 17 |
# File 'lib/nanoc/base/services/compiler/phases/mark_done.rb', line 14 def run(rep, is_outdated:) # rubocop:disable Lint/UnusedMethodArgument yield @outdatedness_store.remove(rep) end |