Sha256: ceee69261ef7a2189968f83f4fe165e1be901d6f55c1e5989db112cb19a4aab0

Contents?: true

Size: 545 Bytes

Versions: 2

Compression:

Stored size: 545 Bytes

Contents

module Vedeu

  # Allows the storing of interface/view borders independent of the interface
  # instance.
  class Borders < Repository

    class << self

      # @return [Vedeu::Borders]
      def borders
        @borders ||= reset!
      end
      alias_method :repository, :borders

      # Remove all stored models from the repository.
      #
      # @return [Vedeu::Borders]
      def reset!
        @borders = register(Vedeu::Border)
      end

    end

    null Vedeu::Null::Border
    # real Vedeu::Border

  end # Borders

end # Vedeu

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.4.25 lib/vedeu/repositories/repositories/borders.rb
vedeu-0.4.24 lib/vedeu/repositories/repositories/borders.rb