Method: Vedeu::Output::CompressorCache#write
- Defined in:
- lib/vedeu/output/compressor_cache.rb
#write(content, compression) ⇒ Hash<Symbol => Array<void>> (private)
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.
84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/vedeu/output/compressor_cache.rb', line 84 def write(content, compression) storage[:original] = content if compression storage[:compress] = compress(content) else storage[:uncompress] = uncompress(content) end end |