Sha256: 302417342b6eb5819c4b1a19766dec0d6fbb22f3cc93f4459e04e8d0fcbe2858

Contents?: true

Size: 576 Bytes

Versions: 2

Compression:

Stored size: 576 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 = register(Vedeu::Geometry)
      end

    end

    null Vedeu::Null::Geometry
    # real Vedeu::Geometry

  end # Geometries

end # Vedeu

Version data entries

2 entries across 2 versions & 1 rubygems

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