lib/gogo_csv/array.rb in gogo_csv-0.0.5 vs lib/gogo_csv/array.rb in gogo_csv-0.0.6
- old
+ new
@@ -1,7 +1,7 @@
module GogoCsv
class ::Array
- def save!(path=nil)
+ def save!(path='./output.csv')
raise 'should be array of array' unless arys?
raise 'Should supply file path' unless path ||= $current_path
CSV.open(File.expand_path(path), "wb") do |csv|
each { |ary| csv << ary }