Class: Nanoc::Core::CompilationPhases::MarkDone

Inherits:
Abstract
  • Object
show all
Includes:
Nanoc::Core::ContractsSupport
Defined in:
lib/nanoc/core/compilation_phases/mark_done.rb

Instance Method Summary collapse

Methods included from Nanoc::Core::ContractsSupport

enabled?, included, setup_once, warn_about_performance

Methods inherited from Abstract

#call, #start, #stop

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