Module: RIO::Ext::CSV::Output
- Defined in:
- lib/rio/ext/csv.rb
Instance Method Summary collapse
Instance Method Details
#putrow(*argv) ⇒ Object
284 285 286 287 288 |
# File 'lib/rio/ext/csv.rb', line 284 def putrow(*argv) require 'csv' row = ( argv.length == 1 && argv[0].kind_of?(::Array) ? argv[0] : argv ) self.puts(::CSV.generate_line(row,self.cx['csv_fs'],self.cx['csv_rs'])) end |
#putrow!(*argv) ⇒ Object
289 290 291 292 |
# File 'lib/rio/ext/csv.rb', line 289 def putrow!(*argv) putrow(*argv) close end |