Sha256: 4ccd3ac07d9a18b2bd5141c42aebdf5113f3840c4439561a1933d056fbf9c5c0

Contents?: true

Size: 535 Bytes

Versions: 5

Compression:

Stored size: 535 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 = Vedeu::Borders.register(Vedeu::Border)
      end

    end

    null Vedeu::Null::Border

  end # Borders

end # Vedeu

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vedeu-0.4.23 lib/vedeu/repositories/repositories/borders.rb
vedeu-0.4.22 lib/vedeu/repositories/repositories/borders.rb
vedeu-0.4.21 lib/vedeu/repositories/repositories/borders.rb
vedeu-0.4.20 lib/vedeu/repositories/repositories/borders.rb
vedeu-0.4.19 lib/vedeu/repositories/repositories/borders.rb