Module: RIO::Ext::CSV::Output
- Defined in:
- lib/rio/ext/csv.rb
Instance Method Summary collapse
Instance Method Details
#putrow(*argv) ⇒ Object
280 281 282 283 284 |
# File 'lib/rio/ext/csv.rb', line 280 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
285 286 287 288 |
# File 'lib/rio/ext/csv.rb', line 285 def putrow!(*argv) putrow(*argv) close end |