lib/nanoc/base/source_data/code_snippet.rb in nanoc-3.7.4 vs lib/nanoc/base/source_data/code_snippet.rb in nanoc-3.7.5

- old
+ new

@@ -1,12 +1,10 @@ # encoding: utf-8 module Nanoc - # Nanoc::CodeSnippet represent a piece of custom code of a nanoc site. class CodeSnippet - # A string containing the actual code in this code snippet. # # @return [String] attr_reader :data @@ -20,11 +18,11 @@ # @param [String] data The raw source code which will be executed before # compilation # # @param [String] filename The filename corresponding to this code snippet # - # @param [Time, Hash] params Extra parameters. Ignored by nanoc; it is + # @param [Time, Hash] _params Extra parameters. Ignored by nanoc; it is # only included for backwards compatibility. def initialize(data, filename, _params = nil) @data = data @filename = filename end @@ -50,9 +48,7 @@ # @return [String] The checksum for this object. If its contents change, # the checksum will change as well. def checksum Nanoc::Checksummer.calc(self) end - end - end