Sha256: b51e999743ae6b120dc78170186286702fd676c30d36a89c994301b536d5eea5

Contents?: true

Size: 158 Bytes

Versions: 2

Compression:

Stored size: 158 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
judge_system-1.5.2 lib/zlib_input.rb
judge_system-1.5.1 lib/zlib_input.rb