lib/nanoc/base/compilation/rule_memory_store.rb in nanoc-3.6.7 vs lib/nanoc/base/compilation/rule_memory_store.rb in nanoc-3.6.8
- old
+ new
@@ -8,13 +8,13 @@
# @api private
class RuleMemoryStore < ::Nanoc::Store
# @option params [Nanoc::Site] site The site where this rule memory store
# belongs to
- def initialize(params={})
+ def initialize(params = {})
super('tmp/rule_memory', 1)
- @site = params[:site] if params.has_key?(:site)
+ @site = params[:site] if params.key?(:site)
@rule_memories = {}
end
# @param [Nanoc::ItemRep, Nanoc::Layout] obj The item representation or