# File lib/more/facets/zlib.rb, line 16 def self.compress(source) output = StringIO.new class << output def close; rewind; end end gz = GzipWriter.new(output) gz.write(source) gz.close output.string end