Module: Skylight::Util::Gzip Private
- Defined in:
- lib/skylight/util/gzip.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .compress(str) ⇒ Object private
Class Method Details
.compress(str) ⇒ Object
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.
6 7 8 9 10 11 12 |
# File 'lib/skylight/util/gzip.rb', line 6 def self.compress(str) output = StringIO.new gz = Zlib::GzipWriter.new(output) gz.write(str) gz.close output.string end |