Sha256: 736eb7cb486529ed89b2f13d8989daa848ccd56d11cd2ed63a1b8230df1c1577
Contents?: true
Size: 751 Bytes
Versions: 4
Compression:
Stored size: 751 Bytes
Contents
module Vedeu module Repositories # Provides behaviour for resetting and accessing the storage of # various repositories. # # @api private # module Storage extend self # Remove all currently stored data for this repository. # # @return [void] def reset! Vedeu.log(type: :reset, message: "Resetting repository '#{self.class.name}'") @storage = in_memory end alias reset reset! # Return whole repository; provides raw access to the storage # for this repository. # # @return [void] def storage @storage ||= in_memory end alias all storage end # Storage end # Repositories end # Vedeu
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.8.10 | lib/vedeu/repositories/storage.rb |
vedeu-0.8.9 | lib/vedeu/repositories/storage.rb |
vedeu-0.8.8 | lib/vedeu/repositories/storage.rb |
vedeu-0.8.7 | lib/vedeu/repositories/storage.rb |