lib/nanoc/base/entities/outdatedness_status.rb in nanoc-4.11.0 vs lib/nanoc/base/entities/outdatedness_status.rb in nanoc-4.11.1

- old
+ new

@@ -1,25 +1,27 @@ # frozen_string_literal: true -module Nanoc::Int - # @api private - class OutdatednessStatus - attr_reader :reasons - attr_reader :props +module Nanoc + module Int + # @api private + class OutdatednessStatus + attr_reader :reasons + attr_reader :props - def initialize(reasons: [], props: Props.new) - @reasons = reasons - @props = props - end + def initialize(reasons: [], props: Props.new) + @reasons = reasons + @props = props + end - def useful_to_apply?(rule) - (rule.affected_props - @props.active).any? - end + def useful_to_apply?(rule) + (rule.affected_props - @props.active).any? + end - def update(reason) - self.class.new( - reasons: @reasons + [reason], - props: @props.merge(reason.props), - ) + def update(reason) + self.class.new( + reasons: @reasons + [reason], + props: @props.merge(reason.props), + ) + end end end end