In Files

  • csv.rb

Methods

CSV::IOBuf

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

Public Class Methods

new(s) click to toggle source
 
               # File csv.rb, line 973
def initialize(s)
  @s = s
  super()
end
            

Public Instance Methods

close() click to toggle source
 
               # File csv.rb, line 978
def close
  terminate
end