Sha256: 1aa205b0eb1c03e083263143ec88c7fbbc81b22f5757c4852a776144358215f4
Contents?: true
Size: 532 Bytes
Versions: 1
Compression:
Stored size: 532 Bytes
Contents
require "undo/version" require "undo/config" require "undo/keeper" module Undo def self.configure yield config end def self.store(object, options = {}) keeper(options).store object end def self.restore(uuid, options = {}) keeper(options).restore uuid end def self.delete(uuid, options = {}) keeper(options).delete uuid end private def self.config @config ||= Config.new end def self.keeper(options) Keeper.new(config, options) end private_class_method :config, :keeper end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
undo-1.0.0 | lib/undo.rb |