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