From: Tobias Reif Date: 2001-10-08T21:32:19+09:00 Subject: [ruby-talk:22227] Re: gzip a string Michael Witrant wrote: > require 'zlib' > str = Zlib::ZStream.deflate "hello" > Zlib::Inflate.inflate str # => "hello" > > RAA entry: http://www.ruby-lang.org/en/raa-list.rhtml?name=Ruby%2Fzlib > English doc: http://www.blue.sky.or.jp/atelier/ruby/zlib.en.html it doesn't work for me: --- require 'zlib' # using http://www.blue.sky.or.jp/atelier/ruby/ruby-zlib-0.4.0.tar.gz # and ruby 1.6.3 (2001-03-19) [i386-cygwin] str = Zlib::ZStream.deflate "hello" Zlib::Inflate.inflate str --- gzip_test.rb:9: undefined method `deflate' for Zlib::ZStream:Class (NameError) How to make it work? Thanks, Tobi -- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.xhtml go_to('www.ruby-lang.org').get(ruby).play.create.have_fun http://www.pinkjuice.com/ruby/