lib/nanoc/base/store.rb in nanoc-3.7.4 vs lib/nanoc/base/store.rb in nanoc-3.7.5

- old
+ new

@@ -1,9 +1,8 @@ # encoding: utf-8 module Nanoc - # An abstract superclass for classes that need to store data to the # filesystem, such as checksums, cached compiled content and dependency # graphs. # # Each store has a version number. When attempting to load data from a store @@ -13,11 +12,10 @@ # @abstract Subclasses must implement {#data} and {#data=}, and may # implement {#no_data_found} and {#version_mismatch_detected}. # # @api private class Store - # @return [String] The name of the file where data will be loaded from and # stored to. attr_reader :filename # @return [Numeric] The version number corresponding to the file format @@ -50,11 +48,11 @@ # @param new_data The data that has been loaded from the disk # # @abstract This method must be implemented by the subclass. # # @return [void] - def data=(_new_data) + def data=(new_data) # rubocop:disable Lint/UnusedMethodArgument raise NotImplementedError.new('Nanoc::Store subclasses must implement #data and #data=') end # Loads the data from the filesystem into memory. This method will set the # loaded data using the {#data=} method. @@ -132,9 +130,7 @@ private def pstore @pstore ||= PStore.new(filename) end - end - end