lib/gogo_csv/matrix.rb in gogo_csv-0.0.5 vs lib/gogo_csv/matrix.rb in gogo_csv-0.0.6

- old
+ new

@@ -1,7 +1,7 @@ module GogoCsv class ::Matrix - def save!(path=nil) + 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