Created
June 24, 2019 02:30
-
-
Save gongo/cb8f63fa258f513acaa93ff9be6047fb to your computer and use it in GitHub Desktop.
Revisions
-
gongo created this gist
Jun 24, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ row1 = CSV::Row.new(['a', 'b'], [1, 2]) row2 = CSV::Row.new(['a', 'c'], [4, 12]) table = CSV::Table.new([row1, row2]) table.to_s # # expected: # # a,b,c # 1,2, # 4,,12 # # actual: # # a,b # 1,2 # 4,12 #