module Undo

Constants

VERSION

Public Class Methods

configure() { |config| ... } click to toggle source
# File lib/undo.rb, line 6
def self.configure
  yield config
end
delete(uuid, options = {}) click to toggle source
# File lib/undo.rb, line 18
def self.delete(uuid, options = {})
  keeper(options).delete uuid
end
restore(uuid, options = {}) click to toggle source
# File lib/undo.rb, line 14
def self.restore(uuid, options = {})
  keeper(options).restore uuid
end
store(object, options = {}) click to toggle source
# File lib/undo.rb, line 10
def self.store(object, options = {})
  keeper(options).store object
end

Private Class Methods

config() click to toggle source
# File lib/undo.rb, line 23
def self.config
  @config ||= Config.new
end
keeper(options) click to toggle source
# File lib/undo.rb, line 27
def self.keeper(options)
  Keeper.new(config, options)
end