Class CSV::IOBuf
In: csv.rb
Parent: StreamBuf

Buffered IO.

EXAMPLE

  # File 'bigdata' could be a giga-byte size one!
  buf = CSV::IOBuf.new(File.open('bigdata', 'rb'))
  CSV::Reader.new(buf).each do |row|
    p row
    break if row[0].data == 'admin'
  end

Methods

close   new  

Public Class methods

[Source]

     # File csv.rb, line 973
973:     def initialize(s)
974:       @s = s
975:       super()
976:     end

Public Instance methods

[Source]

     # File csv.rb, line 978
978:     def close
979:       terminate
980:     end

Search

Google

Ruby API Docs

Links