lib/cistern/data.rb in cistern-2.2.3 vs lib/cistern/data.rb in cistern-2.2.4
- old
+ new
@@ -14,19 +14,19 @@
Cistern::Data.backends[engine].new(options || {}, &block)
end
module ClassMethods
def data
- @data ||= Cistern::Data.backend(*storage) { |d,k| d[k] = [] }
+ @data ||= Cistern::Data.backend(*storage) { |d, k| d[k] = [] }
end
def reset!
clear!
@data = nil
end
def clear!
- self.data.clear
+ data.clear
end
def store_in(*args)
@storage = *args
@data = nil