lib/nanoc/base/source_data/code_snippet.rb in nanoc-3.8.0 vs lib/nanoc/base/source_data/code_snippet.rb in nanoc-4.0.0a1

- old
+ new

@@ -1,9 +1,11 @@ # encoding: utf-8 -module Nanoc - # Nanoc::CodeSnippet represent a piece of custom code of a nanoc site. +module Nanoc::Int + # Nanoc::Int::CodeSnippet represent a piece of custom code of a nanoc site. + # + # @api private class CodeSnippet # A string containing the actual code in this code snippet. # # @return [String] attr_reader :data @@ -45,10 +47,10 @@ "<#{self.class} filename=\"#{filename}\">" end # @return [String] The checksum for this object. If its contents change, # the checksum will change as well. - def checksum - Nanoc::Checksummer.calc(self) + def __nanoc_checksum + Nanoc::Int::Checksummer.calc(self) end end end