lib/nanoc/base/store.rb in nanoc-3.7.3 vs lib/nanoc/base/store.rb in nanoc-3.7.4
- old
+ new
@@ -50,11 +50,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)
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.
@@ -65,11 +65,11 @@
if @loaded
return
end
# Check file existance
- if !File.file?(filename)
+ unless File.file?(filename)
no_data_found
@loaded = true
return
end
@@ -127,10 +127,10 @@
#
# @return [void]
def version_mismatch_detected
end
- private
+ private
def pstore
@pstore ||= PStore.new(filename)
end