Sha256: a1296f78491a58b1cf5575e8ae2e880726c87150bc9fbe21c8f6c5d296d9010c

Contents?: true

Size: 574 Bytes

Versions: 2

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 = register(Vedeu::Interface)
      end

    end

    null Vedeu::Null::Interface
    # real Vedeu::Interface

  end # InterfacesRepository

end # Vedeu

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.4.25 lib/vedeu/repositories/repositories/interfaces_repository.rb
vedeu-0.4.24 lib/vedeu/repositories/repositories/interfaces_repository.rb