Class: Nanoc::Core::OutdatednessRules::ItemCollectionExtended
- Inherits:
-
Nanoc::Core::OutdatednessRule
- Object
- Nanoc::Core::OutdatednessRule
- Nanoc::Core::OutdatednessRules::ItemCollectionExtended
- Defined in:
- lib/nanoc/core/outdatedness_rules/item_collection_extended.rb
Instance Method Summary collapse
Methods inherited from Nanoc::Core::OutdatednessRule
affected_props, affects_props, #call, #inspect
Methods included from ContractsSupport
enabled?, included, setup_once, warn_about_performance
Instance Method Details
#apply(_obj, outdatedness_checker) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/nanoc/core/outdatedness_rules/item_collection_extended.rb', line 10 def apply(_obj, outdatedness_checker) new_items = outdatedness_checker.dependency_store.new_items if new_items.any? Nanoc::Core::OutdatednessReasons::ItemCollectionExtended.new(new_items) end end |