Class Nanoc::OutdatednessChecker
In: lib/nanoc/base/compilation/outdatedness_checker.rb
Parent: Object

Responsible for determining whether an item or a layout is outdated.

@api private

Methods

Public Class methods

@option params [Nanoc::Site] :site (nil) The site this outdatedness

  checker belongs to.

@option params [Nanoc::ChecksumStore] :checksum_store (nil) The

  checksum store where checksums of items, layouts, … are stored.

@option params [Nanoc::DependencyTracker] :dependency_tracker (nil) The

  dependency tracker for the given site.

Public Instance methods

Checks whether the given object is outdated and therefore needs to be recompiled.

@param [Nanoc::Item, Nanoc::ItemRep, Nanoc::Layout] obj The object

  whose outdatedness should be checked.

@return [Boolean] true if the object is outdated, false otherwise

Calculates the reason why the given object is outdated.

@param [Nanoc::Item, Nanoc::ItemRep, Nanoc::Layout] obj The object

  whose outdatedness reason should be calculated.

@return [Nanoc::OutdatednessReasons::Generic, nil] The reason why the

  given object is outdated, or nil if the object is not outdated.

[Validate]