X7ROOT File Manager
Current Path:
/opt/alt/ruby18/share/ri/1.8/system/CSV
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
CSV
/
📁
..
📁
BasicWriter
📁
Cell
📁
IOBuf
📁
IOReader
📁
IllegalFormatError
📁
Reader
📁
Row
📁
StreamBuf
📁
StringReader
📁
Writer
📄
cdesc-CSV.yaml
(1.18 KB)
📄
foreach-c.yaml
(187 B)
📄
generate-c.yaml
(199 B)
📄
generate_body-c.yaml
(199 B)
📄
generate_line-c.yaml
(296 B)
📄
generate_row-c.yaml
(1.4 KB)
📄
generate_separator-c.yaml
(209 B)
📄
open-c.yaml
(2.28 KB)
📄
open_reader-c.yaml
(217 B)
📄
open_writer-c.yaml
(223 B)
📄
parse-c.yaml
(333 B)
📄
parse_body-c.yaml
(188 B)
📄
parse_line-c.yaml
(570 B)
📄
parse_row-c.yaml
(1.51 KB)
📄
read-c.yaml
(191 B)
📄
readlines-c.yaml
(183 B)
Editing: generate_row-c.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Convert a line from cells data to string. Consider using CSV.generate_line instead. To generate multi-row CSV string, see EXAMPLE below. - !ruby/struct:SM::Flow::P body: EXAMPLE - !ruby/struct:SM::Flow::VERB body: " row1 = ['a', 'b']\n row2 = ['c', 'd']\n row3 = ['e', 'f']\n src = [row1, row2, row3]\n buf = ''\n src.each do |row|\n parsed_cells = CSV.generate_row(row, 2, buf)\n puts "Created #{ parsed_cells } cells."\n end\n p buf\n" - !ruby/struct:SM::Flow::P body: ARGS - !ruby/struct:SM::Flow::VERB body: " src: an Array of String to be converted to CSV string. Must respond to\n 'size' and '[](idx)'. src[idx] must return String.\n cells: num of cells in a line.\n out_dev: buffer for generated CSV string. Must respond to '<<(string)'.\n col_sep: Column separator. ?, by default. If you want to separate\n fields with semicolon, give ?; here.\n row_sep: Row separator. nil by default. nil means "\\r\\n or \\n". If you\n want to separate records with \\r, give ?\\r here.\n" - !ruby/struct:SM::Flow::P body: RETURNS - !ruby/struct:SM::Flow::VERB body: " parsed_cells: num of converted cells.\n" full_name: CSV::generate_row is_singleton: true name: generate_row params: (src, cells, out_dev, fs = nil, rs = nil) visibility: public
Upload File
Create Folder