2018-05-09 00:39:16 -04:00
|
|
|
class Array # :nodoc:
|
|
|
|
# Equivalent to CSV::generate_line(self, options)
|
|
|
|
#
|
|
|
|
# ["CSV", "data"].to_csv
|
|
|
|
# #=> "CSV,data\n"
|
|
|
|
def to_csv(**options)
|
2019-04-07 19:44:49 -04:00
|
|
|
CSV.generate_line(self, **options)
|
2018-05-09 00:39:16 -04:00
|
|
|
end
|
|
|
|
end
|