In Files

  • csv.rb

CSV::IOReader

Public Class Methods

new(io, fs = ',', rs = nil) click to toggle 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

close_on_terminate() click to toggle source

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

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

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus