class Nanoc::Core::OutdatednessRule
@api private
Public Class Methods
affected_props()
click to toggle source
# File lib/nanoc/core/outdatedness_rule.rb, line 29 def self.affected_props @affected_props end
affects_props(*names)
click to toggle source
# File lib/nanoc/core/outdatedness_rule.rb, line 25 def self.affects_props(*names) @affected_props = Set.new(names) end
Public Instance Methods
apply(_obj, _outdatedness_checker)
click to toggle source
# File lib/nanoc/core/outdatedness_rule.rb, line 16 def apply(_obj, _outdatedness_checker) raise NotImplementedError.new('Nanoc::Core::OutdatednessRule subclasses must implement #apply') end
call(obj, outdatedness_checker)
click to toggle source
# File lib/nanoc/core/outdatedness_rule.rb, line 10 def call(obj, outdatedness_checker) Nanoc::Core::Instrumentor.call(:outdatedness_rule_ran, self.class) do apply(obj, outdatedness_checker) end end
inspect()
click to toggle source
# File lib/nanoc/core/outdatedness_rule.rb, line 21 def inspect "#{self.class.name}(#{reason})" end