From: Martin Hansen Date: 2010-08-18T22:25:48+09:00 Subject: Re: Making File.open work on gzipped files > 1. refactor opening code (everything before "if block_given?") into a > separate method which returns either IO or GzipReader. > > 2. fold parse and ios into one (i.e. the value returned from the other > method). > > See http://ruby-doc.org/core/classes/Zlib/GzipFile.html#method-M007448 > > 3. In case of block_given? do not return true but rather nothing (i.e. > what the block returned). This is more flexible. 1 & 3 done! I dont quite get 2. Martin -- Posted via http://www.ruby-forum.com/.