Sha256: df3cff4474ede6eeabda1ac4985d6c8e39fc4e19f2c440a10f6008dd9d15258a

Contents?: true

Size: 493 Bytes

Versions: 2

Compression:

Stored size: 493 Bytes

Contents

module Vedeu

  # Allows the storing of view buffers.
  class Buffers < Repository

    class << self

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

      # Remove all stored models from the repository.
      #
      # @return [Vedeu::Buffers]
      def reset!
        @buffers = register(Vedeu::Buffer)
      end

    end

    null Vedeu::Null::Buffer
    # real Vedeu::Buffer

  end # Buffers

end # Vedeu

Version data entries

2 entries across 2 versions & 1 rubygems

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