From: Robert Feldt Date: 2002-01-27T08:26:05+09:00 Subject: Re: [ANN] rubyzip 0.3.1 On Sun, 27 Jan 2002, Daniel Berger wrote: > require 'archive/tar' > require 'compress/bzip2' > archive = Archive::Tar.new( Dir.entries('.') ).compress('bzip2') > Why as a string? IMHO, its better with archive = Archive::Tar.new(entries).compress(Bzip2) or even archive = Bzip2.compress( Archive::Tar.new(entries) ) where archives need not know about compressors at all => less coupling. But maybe they need to know about them anyhow to detect and correctly handle tgz as inputs... /Robert