Class: Tb::NumericCSVReader

Inherits:
NumericReader show all
Defined in:
lib/tb/csv.rb

Instance Method Summary collapse

Methods inherited from NumericReader

#get_hash, #get_named_header, #header_and_each, #header_known?

Methods included from EnumerableWithEach

#each

Methods included from Enumerable

#cat, #extsort_by, #natjoin2, #natjoin2_outer, #newfield, #to_fileenumerator, #with_cumulative_header, #with_header, #write_to_csv, #write_to_json, #write_to_ltsv, #write_to_pnm, #write_to_tsv, #write_with

Constructor Details

#initialize(io) ⇒ NumericCSVReader

Returns a new instance of NumericCSVReader.



53
54
55
56
# File 'lib/tb/csv.rb', line 53

def initialize(io)
  aryreader = CSV.new(io)
  super lambda { aryreader.shift }
end