Class: Skeevy::Filters::SnappyCompression
- Inherits:
-
Object
- Object
- Skeevy::Filters::SnappyCompression
- Includes:
- Skeevy::Filter
- Defined in:
- lib/skeevy/filters/snappy_compression.rb
Instance Method Summary collapse
Instance Method Details
#filter_read(content:) ⇒ Object
10 11 12 |
# File 'lib/skeevy/filters/snappy_compression.rb', line 10 def filter_read(content:) Snappy.uncompress(content) if content end |
#filter_write(content:) ⇒ Object
6 7 8 |
# File 'lib/skeevy/filters/snappy_compression.rb', line 6 def filter_write(content:) Snappy.compress(content) if content end |