Module: Watchdocs::Rails::Store::MemoryBuffer
- Defined in:
- lib/watchdocs/rails/buffer/memory_buffer.rb
Class Method Summary collapse
Class Method Details
.delete! ⇒ Object
14 15 16 |
# File 'lib/watchdocs/rails/buffer/memory_buffer.rb', line 14 def delete! write(nil) end |
.exists? ⇒ Boolean
18 19 20 |
# File 'lib/watchdocs/rails/buffer/memory_buffer.rb', line 18 def exists? @store end |
.read ⇒ Object
10 11 12 |
# File 'lib/watchdocs/rails/buffer/memory_buffer.rb', line 10 def read @store end |
.write(content) ⇒ Object
6 7 8 |
# File 'lib/watchdocs/rails/buffer/memory_buffer.rb', line 6 def write(content) @store = content end |