lib/nanoc/base/compilation/rules_collection.rb in nanoc-3.6.9 vs lib/nanoc/base/compilation/rules_collection.rb in nanoc-3.6.10

- old
+ new

@@ -5,10 +5,15 @@ # Keeps track of the rules in a site. # # @api private class RulesCollection + # @return [String] the contents of the Rules file + # + # @api private + attr_accessor :data + extend Nanoc::Memoization # @return [Array<Nanoc::Rule>] The list of item compilation rules that # will be used to compile items. attr_reader :item_compilation_rules @@ -159,10 +164,10 @@ end # @return [String] The checksum for this object. If its contents change, # the checksum will change as well. def checksum - @data.checksum + Nanoc::Checksummer.calc(self) end def inspect "<#{self.class}>" end