module Cistern::Data::ClassMethods
Public Instance Methods
clear!()
click to toggle source
# File lib/cistern/data.rb, line 29 def clear! data.clear end
data()
click to toggle source
# File lib/cistern/data.rb, line 20 def data @data ||= Cistern::Data.backend(*storage) { |d, k| d[k] = [] } end
reset!()
click to toggle source
# File lib/cistern/data.rb, line 24 def reset! clear! @data = nil end
storage()
click to toggle source
# File lib/cistern/data.rb, line 38 def storage @storage ||= :hash end
store_in(*args)
click to toggle source
# File lib/cistern/data.rb, line 33 def store_in(*args) @storage = *args @data = nil end