lib/vedeu/models/interfaces.rb in vedeu-0.6.8 vs lib/vedeu/models/interfaces.rb in vedeu-0.6.9

- old
+ new

@@ -1,31 +1,35 @@ module Vedeu - # Allows the storing of interfaces and views. - # - class Interfaces < Vedeu::Repository + module Models - singleton_class.send(:alias_method, :interfaces, :repository) + # Allows the storing of interfaces and views. + # + class Interfaces < Vedeu::Repository - null Vedeu::Null::Interface - real Vedeu::Interface + singleton_class.send(:alias_method, :interfaces, :repository) - # 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 + null Vedeu::Null::Interface + real Vedeu::Models::Interface - end # Interfaces + # Returns the interfaces in zindex order. + # + # @example + # Vedeu.interfaces.zindexed + # + # @return [Array<Vedeu::Models::Interface>] + # @see Vedeu::DSL::Interface#zindex + def zindexed + all.sort_by(&:zindex) + end - class Interface + end # Interfaces - repo Vedeu::Interfaces.repository + class Interface - end # Interface + repo Vedeu::Models::Interfaces.repository + + end # Interface + + end # Models end # Vedeu