CSV::IOBuf (Class)

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 985
    def initialize(s)
      @s = s
      super()
    end

Public Instance methods

[Source]

# File csv.rb, line 990
    def close
      terminate
    end

[Validate]