Class: Nanoc::Core::OutdatednessRules::CodeSnippetsModified

Inherits:
Nanoc::Core::OutdatednessRule show all
Includes:
MemoWise
Defined in:
lib/nanoc/core/outdatedness_rules/code_snippets_modified.rb

Instance Method Summary collapse

Methods inherited from Nanoc::Core::OutdatednessRule

affects_attributes?, affects_compiled_content?, affects_path?, affects_props, affects_raw_content?, #call, #inspect

Methods included from ContractsSupport

enabled?, included, setup_once, warn_about_performance

Instance Method Details

#apply(_obj, basic_outdatedness_checker) ⇒ Object



13
14
15
16
17
# File 'lib/nanoc/core/outdatedness_rules/code_snippets_modified.rb', line 13

def apply(_obj, basic_outdatedness_checker)
  if any_snippets_modified?(basic_outdatedness_checker)
    Nanoc::Core::OutdatednessReasons::CodeSnippetsModified
  end
end