class Nanoc::Core::CompilationStages::ForgetOutdatedDependencies

Public Class Methods

new(dependency_store:) click to toggle source
# File lib/nanoc/core/compilation_stages/forget_outdated_dependencies.rb, line 9
def initialize(dependency_store:)
  @dependency_store = dependency_store
end

Public Instance Methods

run(outdated_items) click to toggle source
# File lib/nanoc/core/compilation_stages/forget_outdated_dependencies.rb, line 14
def run(outdated_items)
  outdated_items.each { |i| @dependency_store.forget_dependencies_for(i) }
end