Class: CSV::IOBuf
Overview
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
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(s) ⇒ IOBuf
constructor
A new instance of IOBuf.
Methods inherited from StreamBuf
Constructor Details
#initialize(s) ⇒ IOBuf
Returns a new instance of IOBuf.
973 974 975 976 |
# File 'lib/csv.rb', line 973 def initialize(s) @s = s super() end |
Instance Method Details
#close ⇒ Object
978 979 980 |
# File 'lib/csv.rb', line 978 def close terminate end |