Sha256: f7aff403052f104d227c4024da232b54f6885a034d52e8b195973ee3fbe98d14
Contents?: true
Size: 363 Bytes
Versions: 1
Compression:
Stored size: 363 Bytes
Contents
require 'speed_gun/store' class SpeedGun::Store::MultipleStore < SpeedGun::Store def initialize(stores = []) @stores = stores end def save(object) @stores.each do |store| store.save(object) end end def load(klass, id) @stores.each do |store| ret = store.load(klass, id) return ret if ret end nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
speed_gun-1.0.0.rc1 | lib/speed_gun/store/multiple_store.rb |