Sha256: 0f52543d7bf0ac3da50bd424256c33340981158d5af17c32e1659a0df8724f9b

Contents?: true

Size: 568 Bytes

Versions: 9

Compression:

Stored size: 568 Bytes

Contents

module Vedeu

  module Events

    # Allows the storing of events.
    #
    class Repository < Vedeu::Repository

      singleton_class.send(:alias_method, :events, :repository)

      class << self

        # Remove all stored models from the repository.
        #
        # @example
        #   Vedeu.events.reset!
        #
        # @return [Vedeu::Events::Repository]
        def reset!
          @events = new(Vedeu::Events::Collection)
        end
        alias_method :reset, :reset!

      end # Eigenclass

    end # Repository

  end # Events

end # Vedeu

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
vedeu-0.6.10 lib/vedeu/events/repository.rb
vedeu-0.6.9 lib/vedeu/events/repository.rb
vedeu-0.6.8 lib/vedeu/events/repository.rb
vedeu-0.6.7 lib/vedeu/events/repository.rb
vedeu-0.6.6 lib/vedeu/events/repository.rb
vedeu-0.6.5 lib/vedeu/events/repository.rb
vedeu-0.6.4 lib/vedeu/events/repository.rb
vedeu-0.6.3 lib/vedeu/events/repository.rb
vedeu-0.6.2 lib/vedeu/events/repository.rb