Class: Nanoc::Core::OutdatednessRules::LayoutCollectionExtended
- Inherits:
-
Nanoc::Core::OutdatednessRule
- Object
- Nanoc::Core::OutdatednessRule
- Nanoc::Core::OutdatednessRules::LayoutCollectionExtended
- Defined in:
- lib/nanoc/core/outdatedness_rules/layout_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/layout_collection_extended.rb', line 10 def apply(_obj, outdatedness_checker) new_layouts = outdatedness_checker.dependency_store.new_layouts if new_layouts.any? Nanoc::Core::OutdatednessReasons::LayoutCollectionExtended.new(new_layouts) end end |