Ruby で Zlib 圧縮と復元

Ruby を使って,Zlib 圧縮と復元を行うプログラム例を示す.


require 'zlib'
a = Zlib::Deflate.deflate("hoge")
Zlib::inflate.inflate(a)