Sha256: 2f886b340b6a2707f4e894f61d886e4556d902948d7464eb0e7c6425505415cd

Contents?: true

Size: 582 Bytes

Versions: 10

Compression:

Stored size: 582 Bytes

Contents

module Vedeu

  module Events

    # Allows the storing of events.
    #
    class Repository < Vedeu::Repositories::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

10 entries across 10 versions & 1 rubygems

Version Path
vedeu-0.6.20 lib/vedeu/events/repository.rb
vedeu-0.6.19 lib/vedeu/events/repository.rb
vedeu-0.6.18 lib/vedeu/events/repository.rb
vedeu-0.6.17 lib/vedeu/events/repository.rb
vedeu-0.6.16 lib/vedeu/events/repository.rb
vedeu-0.6.15 lib/vedeu/events/repository.rb
vedeu-0.6.14 lib/vedeu/events/repository.rb
vedeu-0.6.13 lib/vedeu/events/repository.rb
vedeu-0.6.12 lib/vedeu/events/repository.rb
vedeu-0.6.11 lib/vedeu/events/repository.rb