Class: Undo::Storage::Memory
- Inherits:
-
Object
- Object
- Undo::Storage::Memory
- Defined in:
- lib/undo/storage/memory.rb
Instance Method Summary collapse
- #delete(uuid, options = {}) ⇒ Object
- #fetch(uuid, options = {}) ⇒ Object
-
#initialize(options = {}) ⇒ Memory
constructor
A new instance of Memory.
- #store(uuid, object, options = {}) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Memory
Returns a new instance of Memory.
4 5 |
# File 'lib/undo/storage/memory.rb', line 4 def initialize( = {}) end |
Instance Method Details
#delete(uuid, options = {}) ⇒ Object
15 16 17 |
# File 'lib/undo/storage/memory.rb', line 15 def delete(uuid, = {}) storage.delete(uuid) end |
#fetch(uuid, options = {}) ⇒ Object
11 12 13 |
# File 'lib/undo/storage/memory.rb', line 11 def fetch(uuid, = {}) storage.fetch(uuid) end |
#store(uuid, object, options = {}) ⇒ Object
7 8 9 |
# File 'lib/undo/storage/memory.rb', line 7 def store(uuid, object, = {}) storage[uuid] = object end |