Class: AnixeCsv::GzipReader
- Defined in:
- lib/anixe_csv/gzip_reader.rb
Overview
Yields a Row to the block provided
Instance Method Summary collapse
-
#initialize ⇒ GzipReader
constructor
A new instance of GzipReader.
- #open(path) ⇒ Object
Methods inherited from Reader
#close, #each_line, open, parse_fields, read, #read_fields, split_line
Constructor Details
#initialize ⇒ GzipReader
Returns a new instance of GzipReader.
7 8 9 |
# File 'lib/anixe_csv/gzip_reader.rb', line 7 def initialize super end |
Instance Method Details
#open(path) ⇒ Object
11 12 13 14 |
# File 'lib/anixe_csv/gzip_reader.rb', line 11 def open(path) file = File.open(path, "r") @file = Zlib::GzipReader.new(file) end |