Sha256: bc440a7327860d84f35a06b577aadd5686aa9e3a865c89256076520f6b917ffc
Contents?: true
Size: 414 Bytes
Versions: 1
Compression:
Stored size: 414 Bytes
Contents
module Undo module Storage class Memory def initialize(options = {}) end def store(uuid, object, options = {}) storage[uuid] = object end def fetch(uuid, options = {}) storage.fetch(uuid) end def delete(uuid, options = {}) storage.delete(uuid) end private def storage @storage ||= {} end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
undo-1.0.0 | lib/undo/storage/memory.rb |