Sha256: a094520ac1d4fb3f8514e34a6ae48afe0d67a969fb4460f2623614c60c3092ce

Contents?: true

Size: 601 Bytes

Versions: 1

Compression:

Stored size: 601 Bytes

Contents

module Vedeu

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

    class << self

      alias_method :interfaces, :repository

    end # Eigenclass

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

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

  end # Interfaces

  class Interface

    repo Vedeu::Interfaces.repository

  end # Interface

end # Vedeu

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.5.7 lib/vedeu/models/interfaces.rb