module Vedeu # Allows the storing of interfaces and views. # # @api public class Interfaces < Repository class << self # @example # Vedeu.interfaces # # @return [Vedeu::Interfaces] alias_method :interfaces, :repository # Remove all stored models from the repository. # # @example # Vedeu.interfaces.reset! # # @return [Vedeu::Interfaces] def reset! @interfaces = register(Vedeu::Interface) end end null Vedeu::Null::Interface # real Vedeu::Interface # Returns the interfaces in zindex order. # # @example # Vedeu.interfaces.zindexed # # @return [Array] # @see Vedeu::DSL::Interface#zindex def zindexed all.sort { |a, b| a.zindex <=> b.zindex } end end # Interfaces end # Vedeu