Skip to content
This repository has been archived by the owner on Apr 10, 2022. It is now read-only.

pbyrne/array-to-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adds Array#to_csv method that converts the contents of the array to CSV format.

Examples:

    [['a', 'b'], ['c', 'd']].to_csv
    #=> "a","b"\n"c","d"
    ['Report on somesuch', 
      ['name', 'value'],
      ['foo', 156],
      ['bar', 24]].to_csv
    #=> "Report on somesuch"\n"name","value"\n"foo","156"\n"bar","24"

This gem is released under a broad open-source license. See LICENSE for more details.

About

A gem including a simple method to convert arrays to CSV output.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages