Class CSV::IOReader
In: csv.rb
Parent: Reader

Methods

Public Class methods

[Source]

     # File csv.rb, line 616
616:     def initialize(io, fs = ',', rs = nil)
617:       @io = io
618:       @fs = fs
619:       @rs = rs
620:       @dev = CSV::IOBuf.new(@io)
621:       @idx = 0
622:       if @dev[0] == 0xef and @dev[1] == 0xbb and @dev[2] == 0xbf
623:         @idx += 3
624:       end
625:       @close_on_terminate = false
626:     end

Public Instance methods

Tell this reader to close the IO when terminated (Triggered by invoking CSV::IOReader#close).

[Source]

     # File csv.rb, line 630
630:     def close_on_terminate
631:       @close_on_terminate = true
632:     end

Search

Google

Ruby API Docs

Links