Sha256: 8ebb61a1de2c27597805b40444791073c86700508cd2f4f2ca57a4048ebd3723

Contents?: true

Size: 621 Bytes

Versions: 14

Compression:

Stored size: 621 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 { |a, b| a.zindex <=> b.zindex }
    end

  end # Interfaces

  class Interface

    repo Vedeu::Interfaces.repository

  end # Interface

end # Vedeu

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
vedeu-0.5.6 lib/vedeu/models/interfaces.rb
vedeu-0.5.5 lib/vedeu/models/interfaces.rb
vedeu-0.5.4 lib/vedeu/models/interfaces.rb
vedeu-0.5.3 lib/vedeu/models/interfaces.rb
vedeu-0.5.2 lib/vedeu/models/interfaces.rb
vedeu-0.5.1 lib/vedeu/models/interfaces.rb
vedeu-0.5.0 lib/vedeu/models/interfaces.rb
vedeu-0.4.65 lib/vedeu/models/interfaces.rb
vedeu-0.4.64 lib/vedeu/models/interfaces.rb
vedeu-0.4.63 lib/vedeu/models/interfaces.rb
vedeu-0.4.62 lib/vedeu/models/interfaces.rb
vedeu-0.4.61 lib/vedeu/models/interfaces.rb
vedeu-0.4.60 lib/vedeu/models/interfaces.rb
vedeu-0.4.59 lib/vedeu/models/interfaces.rb