Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/csv.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#to_csv(**options) ⇒ Object

Equivalent to CSV::generate_line(self, options)

["CSV", "data"].to_csv
  #=> "CSV,data\n"


2342
2343
2344
# File 'lib/csv.rb', line 2342

def to_csv(**options)
  CSV.generate_line(self, options)
end