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

- old
+ new

@@ -7,9 +7,13 @@ 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]) } + end + private def arys? all? { |item| item.is_a?(Array) } end