lib/nanoc/base/compilation/outdatedness_checker.rb
# 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.
Calculates the reason why the given object is outdated.
Calculates the reason why the given object is outdated .
def outdatedness_reason_for(obj)
      reason = basic_outdatedness_reason_for(obj)
      if reason.nil? && outdated_due_to_dependencies?(obj)
        reason = Nanoc::OutdatednessReasons::DependenciesOutdated
      end
      reason
    end
def outdatedness_reason_for ( obj ) reason = basic_outdatedness_reason_for ( obj ) if reason . nil? && outdated_due_to_dependencies? ( obj ) reason = Nanoc :: OutdatednessReasons :: DependenciesOutdated end reason end
Calculates the reason why the given object is outdated.
Calculates the reason why the given object is outdated .
The reason why the given object is outdated, or nil if the object is not outdated.
The reason why the given object is outdated or nil if the object is not outdated .
Nanoc::OutdatednessReasons::Generic, nil
obj
obj The object whose outdatedness reason should be calculated.
obj The object whose outdatedness reason should be calculated .