Sha256: d9b89d588d89844ffdda8a027690b5024e86d0ea8131f4a5f0bf8e28d60160b7

Contents?: true

Size: 618 Bytes

Versions: 7

Compression:

Stored size: 618 Bytes

Contents

require 'vedeu/null/interface'
require 'vedeu/models/interface'

module Vedeu

  # Allows the storing of interfaces and views.
  #
  # @api public
  class Interfaces < 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

end # Vedeu

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vedeu-0.4.53 lib/vedeu/repositories/repositories/interfaces.rb
vedeu-0.4.52 lib/vedeu/repositories/repositories/interfaces.rb
vedeu-0.4.51 lib/vedeu/repositories/repositories/interfaces.rb
vedeu-0.4.50 lib/vedeu/repositories/repositories/interfaces.rb
vedeu-0.4.49 lib/vedeu/repositories/repositories/interfaces.rb
vedeu-0.4.48 lib/vedeu/repositories/repositories/interfaces.rb
vedeu-0.4.47 lib/vedeu/repositories/repositories/interfaces.rb