lib/nanoc/base/entities/rule_memory.rb in nanoc-4.1.0a1 vs lib/nanoc/base/entities/rule_memory.rb in nanoc-4.1.0b1

- old
+ new

@@ -22,15 +22,19 @@ def add_layout(layout_identifier, params) @actions << Nanoc::Int::RuleMemoryActions::Layout.new(layout_identifier, params) end def add_snapshot(snapshot_name, final, path) - will_add_snapshot(snapshot_name) + will_add_snapshot(snapshot_name) if final @actions << Nanoc::Int::RuleMemoryActions::Snapshot.new(snapshot_name, final, path) end def snapshot_actions @actions.select { |a| a.is_a?(Nanoc::Int::RuleMemoryActions::Snapshot) } + end + + def any_layouts? + @actions.any? { |a| a.is_a?(Nanoc::Int::RuleMemoryActions::Layout) } end def serialize map(&:serialize) end