Class: Nanoc::Core::OutdatednessRules::ItemAdded
- Inherits:
-
Nanoc::Core::OutdatednessRule
- Object
- Nanoc::Core::OutdatednessRule
- Nanoc::Core::OutdatednessRules::ItemAdded
- Defined in:
- lib/nanoc/core/outdatedness_rules/item_added.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
10 11 12 13 14 |
# File 'lib/nanoc/core/outdatedness_rules/item_added.rb', line 10 def apply(obj, basic_outdatedness_checker) if basic_outdatedness_checker.dependency_store.new_items.include?(obj.item) Nanoc::Core::OutdatednessReasons::DocumentAdded end end |