Sha256: 10230b9e6eedc3d0c0c4a6b9bbc51a668baffafa49826b88d6a8fa4f6b9eb5c1

Contents?: true

Size: 182 Bytes

Versions: 3

Compression:

Stored size: 182 Bytes

Contents

require 'zlib'
require 'base64'
module ZlibInput
	def zlib input
		data = Zlib::Deflate.deflate(input, Zlib::BEST_COMPRESSION)
		Base64.encode64(data)
	end
	module_function :zlib
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
judge_system-1.6.2 lib/zlib_input.rb
judge_system-1.6.1 lib/zlib_input.rb
judge_system-1.6.0 lib/zlib_input.rb