Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

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