Sha256: 8542d7d8ecdd08d5fe5fd470ef0d24c237be9450fb72f003b8ddb554648035b5

Contents?: true

Size: 379 Bytes

Versions: 22

Compression:

Stored size: 379 Bytes

Contents

module Watchdocs
  module Rails
    module Buffer
      module MemoryBuffer
        class << self
          def write(content)
            @store = content
          end

          def read
            @store
          end

          def delete!
            write(nil)
          end

          def exists?
            @store
          end
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
watchdocs-rails-0.11.2 lib/watchdocs/rails/buffer/memory_buffer.rb
watchdocs-rails-0.11.1 lib/watchdocs/rails/buffer/memory_buffer.rb
watchdocs-rails-0.11.0 lib/watchdocs/rails/buffer/memory_buffer.rb
watchdocs-rails-0.10.0 lib/watchdocs/rails/buffer/memory_buffer.rb
watchdocs-rails-0.9.0 lib/watchdocs/rails/buffer/memory_buffer.rb
watchdocs-rails-0.8.0 lib/watchdocs/rails/buffer/memory_buffer.rb
watchdocs-rails-0.7.0 lib/watchdocs/rails/buffer/memory_buffer.rb
watchdocs-rails-0.6.0 lib/watchdocs/rails/buffer/memory_buffer.rb
watchdocs-rails-0.5.0 lib/watchdocs/rails/buffer/memory_buffer.rb
watchdocs-rails-0.4.6 lib/watchdocs/rails/buffer/memory_buffer.rb
watchdocs-rails-0.4.5 lib/watchdocs/rails/buffer/memory_buffer.rb
watchdocs-rails-0.4.4 lib/watchdocs/rails/buffer/memory_buffer.rb
watchdocs-rails-0.4.3 lib/watchdocs/rails/buffer/memory_buffer.rb
watchdocs-rails-0.4.2 lib/watchdocs/rails/buffer/memory_buffer.rb
watchdocs-rails-0.4.1 lib/watchdocs/rails/buffer/memory_buffer.rb
watchdocs-rails-0.4.0 lib/watchdocs/rails/buffer/memory_buffer.rb
watchdocs-rails-0.3.7 lib/watchdocs/rails/buffer/memory_buffer.rb
watchdocs-rails-0.3.6 lib/watchdocs/rails/buffer/memory_buffer.rb
watchdocs-rails-0.3.5 lib/watchdocs/rails/buffer/memory_buffer.rb
watchdocs-rails-0.3.4 lib/watchdocs/rails/buffer/memory_buffer.rb