Module BZ2
In: bz2.rb

bz2 is an extension to use libbzip2 from ruby

Methods
bunzip2    bzip2    compress    uncompress   
Classes and Modules
Class BZ2::ConfigError
Class BZ2::EOZError
Class BZ2::Error
Class BZ2::Reader
Class BZ2::Writer
Public Instance methods
bzip2(str, blocks = 9, work = 0)

Compress the String str

blocks specifies the block size to be used for compression. It should be a value between 1 and 9 inclusive, and the actual block size used is 100000 x this value

work controls how the compression phase behaves when presented with worst case, highly repetitive, input data.Allowable values range from 0 to 250 inclusive

compress(str, blocks = 9, work = 0)

same than bzip2

bunzip2(str, small = Qfalse)

Uncompress the String str

If small is true, the library will use an alternative decompression algorithm which uses less memory but at the cost of decompressing more slowly

uncompress(str, small = Qfalse)

same than bunzip2