Class: Nanoc::Int::Compiler::Stages::ForgetOutdatedDependencies

Inherits:
Object
  • Object
show all
Defined in:
lib/nanoc/base/services/compiler/stages/forget_outdated_dependencies.rb

Instance Method Summary collapse

Constructor Details

#initialize(dependency_store:) ⇒ ForgetOutdatedDependencies

Returns a new instance of ForgetOutdatedDependencies



7
8
9
# File 'lib/nanoc/base/services/compiler/stages/forget_outdated_dependencies.rb', line 7

def initialize(dependency_store:)
  @dependency_store = dependency_store
end

Instance Method Details

#run(outdated_items) ⇒ Object



12
13
14
# File 'lib/nanoc/base/services/compiler/stages/forget_outdated_dependencies.rb', line 12

def run(outdated_items)
  outdated_items.each { |i| @dependency_store.forget_dependencies_for(i) }
end