Use CSV#generate to generate CSV:
Merge pull request #5 from joneslee85/patch-1

Use CSV#generate to generate CSV: