title: How to decompress Gzip string in ruby?
body: <p>Zlib::GzipReader can take "an IO, or IO-like, object." as it's input, as stated in docs. </p>
  
  <pre><code>Zlib::GzipReader.open('hoge.gz') {|gz|
    print gz.read
  }
  
  File.open('hoge.gz') do |f|
    gz = Zlib::GzipReader.new(f)
    print gz.read
    gz.close
  end
  </code></pre>
  
  <p>How should I ungzip a string?</p>