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

Methods

Public Class methods

[Source]

# File csv.rb, line 616
    def initialize(io, fs = ',', rs = nil)
      @io = io
      @fs = fs
      @rs = rs
      @dev = CSV::IOBuf.new(@io)
      @idx = 0
      if @dev[0] == 0xef and @dev[1] == 0xbb and @dev[2] == 0xbf
        @idx += 3
      end
      @close_on_terminate = false
    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
    def close_on_terminate
      @close_on_terminate = true
    end

[Validate]

ruby-doc.org is a community service provided by James Britt and Happy Camper Studios, a Phoenix, Arizona, Ruby application development company.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.