Sha256: 315e716114c173727b0017d6c1bfcb17ec623efeb772c480da1e94990cbf5831

Contents?: true

Size: 933 Bytes

Versions: 12

Compression:

Stored size: 933 Bytes

Contents

module Vedeu

  module Interfaces

    # Allows the storing of interfaces and views.
    #
    class Repository < Vedeu::Repositories::Repository

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

      null Vedeu::Interfaces::Null
      real Vedeu::Interfaces::Interface

      # Returns the interfaces in zindex order.
      #
      # @example
      #   Vedeu.interfaces.zindexed
      #
      # @return [Array<Vedeu::Interfaces::Interface>]
      # @see Vedeu::Interfaces::DSL#zindex
      def zindexed
        all.sort_by(&:zindex)
      end

    end # Interfaces

    class Interface

      repo Vedeu::Interfaces::Repository.repository

    end # Interface

  end # Interfaces

  # Manipulate the repository of interfaces.
  #
  # @example
  #   Vedeu.interfaces
  #
  # @!method interfaces
  # @return [Vedeu::Interfaces::Repository]
  def_delegators Vedeu::Interfaces::Repository, :interfaces

end # Vedeu

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vedeu-0.6.40 lib/vedeu/interfaces/repository.rb
vedeu-0.6.39 lib/vedeu/interfaces/repository.rb
vedeu-0.6.38 lib/vedeu/interfaces/repository.rb
vedeu-0.6.37 lib/vedeu/interfaces/repository.rb
vedeu-0.6.36 lib/vedeu/interfaces/repository.rb
vedeu-0.6.35 lib/vedeu/interfaces/repository.rb
vedeu-0.6.34 lib/vedeu/interfaces/repository.rb
vedeu-0.6.33 lib/vedeu/interfaces/repository.rb
vedeu-0.6.32 lib/vedeu/interfaces/repository.rb
vedeu-0.6.31 lib/vedeu/interfaces/repository.rb
vedeu-0.6.30 lib/vedeu/interfaces/repository.rb
vedeu-0.6.29 lib/vedeu/interfaces/repository.rb