????JFIF??x?x????'
| Server IP : 104.21.30.238 / Your IP : 216.73.216.87 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././proc/self/root/proc/self/root/opt/alt/ruby18/share/ri/1.8/system/CSV/ |
Upload File : |
--- !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