Module: Undo

Defined in:
lib/undo.rb,
lib/undo/config.rb,
lib/undo/keeper.rb,
lib/undo/version.rb,
lib/undo/container/json.rb,
lib/undo/storage/memory.rb,
lib/undo/serializer/null.rb,
lib/undo/storage/adapter.rb

Defined Under Namespace

Modules: Container, Serializer, Storage Classes: Config, Keeper

Constant Summary collapse

VERSION =
IO.read("VERSION")

Class Method Summary collapse

Class Method Details

.configure {|config| ... } ⇒ Object

Yields:

  • (config)


6
7
8
# File 'lib/undo.rb', line 6

def self.configure
  yield config
end

.delete(uuid, options = {}) ⇒ Object



18
19
20
# File 'lib/undo.rb', line 18

def self.delete(uuid, options = {})
  keeper(options).delete uuid
end

.restore(uuid, options = {}) ⇒ Object



14
15
16
# File 'lib/undo.rb', line 14

def self.restore(uuid, options = {})
  keeper(options).restore uuid
end

.store(object, options = {}) ⇒ Object



10
11
12
# File 'lib/undo.rb', line 10

def self.store(object, options = {})
  keeper(options).store object
end