Sha256: be5848b047e1399d6160a31283f5231adb922ab4a15a4922108c366ca0cb285b
Contents?: true
Size: 264 Bytes
Versions: 2
Compression:
Stored size: 264 Bytes
Contents
module GogoCsv class ::Matrix def save!(path='./output.csv') raise 'Should supply file path' unless path ||= $current_path CSV.open(File.expand_path(path), "wb") do |csv| row_vectors.each { |v| csv << v.to_a } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gogo_csv-0.0.7 | lib/gogo_csv/matrix.rb |
gogo_csv-0.0.6 | lib/gogo_csv/matrix.rb |