D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
CSV
/
Reader
/
Filename :
cdesc-Reader.yaml
back
Copy
--- !ruby/object:RI::ClassDescription attributes: [] class_methods: - !ruby/object:RI::MethodSummary name: create - !ruby/object:RI::MethodSummary name: new - !ruby/object:RI::MethodSummary name: parse comment: - !ruby/struct:SM::Flow::P body: CSV formatted string/stream reader. - !ruby/struct:SM::Flow::P body: EXAMPLE - !ruby/struct:SM::Flow::VERB body: " read CSV lines untill the first column is 'stop'.\n\n CSV::Reader.parse(File.open('bigdata', 'rb')) do |row|\n p row\n break if !row[0].is_null && row[0].data == 'stop'\n end\n" constants: [] full_name: CSV::Reader includes: - !ruby/object:RI::IncludedModule name: Enumerable instance_methods: - !ruby/object:RI::MethodSummary name: close - !ruby/object:RI::MethodSummary name: each - !ruby/object:RI::MethodSummary name: get_row - !ruby/object:RI::MethodSummary name: shift - !ruby/object:RI::MethodSummary name: terminate name: Reader superclass: Object