Module: Ruar::Compression
- Defined in:
- lib/ruar/compression.rb
Class Method Summary collapse
Class Method Details
.compress(data) ⇒ Object
5 6 7 |
# File 'lib/ruar/compression.rb', line 5 def self.compress(data) Zlib::Deflate.deflate(data) end |
.decompress(data) ⇒ Object
9 10 11 |
# File 'lib/ruar/compression.rb', line 9 def self.decompress(data) Zlib::Inflate.inflate(data) end |