lib/nanoc/base/source_data/code_snippet.rb in nanoc-3.7.3 vs lib/nanoc/base/source_data/code_snippet.rb in nanoc-3.7.4
- old
+ new
@@ -22,11 +22,11 @@
#
# @param [String] filename The filename corresponding to this code snippet
#
# @param [Time, Hash] params Extra parameters. Ignored by nanoc; it is
# only included for backwards compatibility.
- def initialize(data, filename, params = nil)
+ def initialize(data, filename, _params = nil)
@data = data
@filename = filename
end
# Loads the code by executing it.
@@ -38,10 +38,10 @@
# Returns an object that can be used for uniquely identifying objects.
#
# @return [Object] An unique reference to this object
def reference
- [ :code_snippet, filename ]
+ [:code_snippet, filename]
end
def inspect
"<#{self.class} filename=\"#{filename}\">"
end