Sha256: 09c8fde5a42e1ec1df29b32c9bda1e75a0331468ccaa785a061deebaae06085f
Contents?: true
Size: 662 Bytes
Versions: 4
Compression:
Stored size: 662 Bytes
Contents
require_relative 'collection' require_relative 'collections/all' require_relative 'model' require_relative 'repositories/all' require_relative 'repository' module Vedeu # Provides all registered repositories. # module Repositories extend self # @param klass [Class] # @return [Set] def register(klass) storage.add(klass) end # @return [TrueClass] def reset! storage.map(&:repository).map { |repository| repository.send(:reset) } true end private # Access to the storage for this repository. # # @return [Array] def storage @storage ||= Set.new end end end # Vedeu
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.4.17 | lib/vedeu/repositories/all.rb |
vedeu-0.4.16 | lib/vedeu/repositories/all.rb |
vedeu-0.4.15 | lib/vedeu/repositories/all.rb |
vedeu-0.4.14 | lib/vedeu/repositories/all.rb |