lib/gogo_csv/array.rb in gogo_csv-0.0.4 vs lib/gogo_csv/array.rb in gogo_csv-0.0.5

- old
+ new

@@ -7,11 +7,11 @@ CSV.open(File.expand_path(path), "wb") do |csv| each { |ary| csv << ary } end end - def map_cal(from_num, to_num=from_num, &blk) - map { |row| row[to_num] = blk.(row[from_num]) } + def map_col!(from_num, to_num=from_num, &blk) + each { |row| row[to_num] = blk.(row[from_num]) } end private def arys?