Method: Vedeu::Output::CompressorCache#cache
- Defined in:
- lib/vedeu/output/compressor_cache.rb
#cache(content, compression = false) ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 25 26 |
# File 'lib/vedeu/output/compressor_cache.rb', line 22 def cache(content, compression = false) write(content, compression) unless empty?(content) || cached?(content) compression ? read(:compress) : read(:uncompress) end |