Sha256: 87e7cf878ded2c8c89ed4087ed2b50daffa6f3726e44ff79ab5d09a3753e804f

Contents?: true

Size: 950 Bytes

Versions: 36

Compression:

Stored size: 950 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

36 entries across 36 versions & 1 rubygems

Version Path
vedeu-0.8.0 lib/vedeu/interfaces/repository.rb
vedeu-0.7.4 lib/vedeu/interfaces/repository.rb
vedeu-0.7.3 lib/vedeu/interfaces/repository.rb
vedeu-0.7.2 lib/vedeu/interfaces/repository.rb
vedeu-0.7.1 lib/vedeu/interfaces/repository.rb
vedeu-0.7.0 lib/vedeu/interfaces/repository.rb
vedeu-0.6.71 lib/vedeu/interfaces/repository.rb
vedeu-0.6.70 lib/vedeu/interfaces/repository.rb
vedeu-0.6.69 lib/vedeu/interfaces/repository.rb
vedeu-0.6.68 lib/vedeu/interfaces/repository.rb
vedeu-0.6.67 lib/vedeu/interfaces/repository.rb
vedeu-0.6.66 lib/vedeu/interfaces/repository.rb
vedeu-0.6.65 lib/vedeu/interfaces/repository.rb
vedeu-0.6.64 lib/vedeu/interfaces/repository.rb
vedeu-0.6.63 lib/vedeu/interfaces/repository.rb
vedeu-0.6.62 lib/vedeu/interfaces/repository.rb
vedeu-0.6.61 lib/vedeu/interfaces/repository.rb
vedeu-0.6.60 lib/vedeu/interfaces/repository.rb
vedeu-0.6.59 lib/vedeu/interfaces/repository.rb
vedeu-0.6.58 lib/vedeu/interfaces/repository.rb