Sha256: 0c4258ba4f44744eeb6206dd024e8a55ebb3ec6484073a0a28eadc68368a3995

Contents?: true

Size: 574 Bytes

Versions: 5

Compression:

Stored size: 574 Bytes

Contents

module Vedeu

  # Allows the storing of interfaces and views.
  class InterfacesRepository < Repository

    class << self

      # @return [Vedeu::InterfacesRepository]
      def interfaces
        @interfaces ||= reset!
      end
      alias_method :repository, :interfaces

      # Remove all stored models from the repository.
      #
      # @return [Vedeu::InterfacesRepository]
      def reset!
        @interfaces = Vedeu::InterfacesRepository.register(Vedeu::Interface)
      end

    end

    null Vedeu::Null::Interface

  end # InterfacesRepository

end # Vedeu

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vedeu-0.4.23 lib/vedeu/repositories/repositories/interfaces_repository.rb
vedeu-0.4.22 lib/vedeu/repositories/repositories/interfaces_repository.rb
vedeu-0.4.21 lib/vedeu/repositories/repositories/interfaces_repository.rb
vedeu-0.4.20 lib/vedeu/repositories/repositories/interfaces_repository.rb
vedeu-0.4.19 lib/vedeu/repositories/repositories/interfaces_repository.rb