Sha256: dbffd341aa99e02622ae18165a26286b800a5d799b4c4393bc7e772bcb8412f6

Contents?: true

Size: 582 Bytes

Versions: 15

Compression:

Stored size: 582 Bytes

Contents

module Vedeu

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

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

    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

15 entries across 15 versions & 1 rubygems

Version Path
vedeu-0.6.8 lib/vedeu/models/interfaces.rb
vedeu-0.6.7 lib/vedeu/models/interfaces.rb
vedeu-0.6.6 lib/vedeu/models/interfaces.rb
vedeu-0.6.5 lib/vedeu/models/interfaces.rb
vedeu-0.6.4 lib/vedeu/models/interfaces.rb
vedeu-0.6.3 lib/vedeu/models/interfaces.rb
vedeu-0.6.2 lib/vedeu/models/interfaces.rb
vedeu-0.6.1 lib/vedeu/models/interfaces.rb
vedeu-0.6.0 lib/vedeu/models/interfaces.rb
vedeu-0.5.13 lib/vedeu/models/interfaces.rb
vedeu-0.5.12 lib/vedeu/models/interfaces.rb
vedeu-0.5.11 lib/vedeu/models/interfaces.rb
vedeu-0.5.10 lib/vedeu/models/interfaces.rb
vedeu-0.5.9 lib/vedeu/models/interfaces.rb
vedeu-0.5.8 lib/vedeu/models/interfaces.rb