class Undo::Storage::Memory

Public Class Methods

new(options = {}) click to toggle source
# File lib/undo/storage/memory.rb, line 4
def initialize(options = {})
end

Public Instance Methods

delete(uuid, options = {}) click to toggle source
# File lib/undo/storage/memory.rb, line 15
def delete(uuid, options = {})
  storage.delete(uuid)
end
fetch(uuid, options = {}) click to toggle source
# File lib/undo/storage/memory.rb, line 11
def fetch(uuid, options = {})
  storage.fetch(uuid)
end
store(uuid, object, options = {}) click to toggle source
# File lib/undo/storage/memory.rb, line 7
def store(uuid, object, options = {})
  storage[uuid] = object
end

Private Instance Methods

storage() click to toggle source
# File lib/undo/storage/memory.rb, line 20
def storage
  @storage ||= {}
end