Sha256: 3c11eb4d0bf4a68f7aac45f38ef33d6f4e5a329c7d017a62b13ebd43bdc6c64c

Contents?: true

Size: 483 Bytes

Versions: 5

Compression:

Stored size: 483 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 = Vedeu::Buffers.register(Vedeu::Buffer)
      end

    end

    null Vedeu::Null::Buffer

  end # Buffers

end # Vedeu

Version data entries

5 entries across 5 versions & 1 rubygems

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