Class: Tb::NumericCSVWriter

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

Instance Method Summary collapse

Methods inherited from NumericWriter

#finish, #header_generator=, #header_required?, #put_hash

Constructor Details

#initialize(io) ⇒ NumericCSVWriter

io is an object which has “<<” method.



61
62
63
# File 'lib/tb/csv.rb', line 61

def initialize(io)
  super lambda {|ary| io << ary.to_csv }
end