Class: AnixeCsv::GzipReader

Inherits:
Reader
  • Object
show all
Defined in:
lib/anixe_csv/gzip_reader.rb

Overview

Yields a Row to the block provided

Instance Method Summary collapse

Methods inherited from Reader

#close, #each_line, open, parse_fields, read, #read_fields, split_line

Constructor Details

#initializeGzipReader

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