module Storage
Public Class Methods
add_store_class(label, clazz)
click to toggle source
# File lib/storage.rb, line 24 def self.add_store_class(label, clazz) @@store_classes[label.to_sym] = clazz end
store(type, path_prefix, options={})
click to toggle source
# File lib/storage.rb, line 19 def self.store(type, path_prefix, options={}) builder = Builder.new(type) builder.build(path_prefix, options) end
store_class_for(label)
click to toggle source
# File lib/storage.rb, line 28 def self.store_class_for(label) @@store_classes[label.to_sym] end