Sha256: 8beb5859d4982a0121756a7fffcad006f0e6c764ceb40bb5bbf985849b65036d

Contents?: true

Size: 567 Bytes

Versions: 5

Compression:

Stored size: 567 Bytes

Contents

module Vedeu

  # Allows the storing of interface/view geometry independent of the interface
  # instance.
  class Geometries < Repository

    class << self

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

      # Remove all stored models from the repository.
      #
      # @return [Vedeu::Geometries]
      def reset!
        @geometries = Vedeu::Geometries.register(Vedeu::Geometry)
      end

    end

    null Vedeu::Null::Geometry

  end # Geometries

end # Vedeu

Version data entries

5 entries across 5 versions & 1 rubygems

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