Sha256: 8b89785829c4e87bf3b20b91db45ae947aad117387918abd92eb2bc8c631bde4
Contents?: true
Size: 406 Bytes
Versions: 42
Compression:
Stored size: 406 Bytes
Contents
require "csv" module Octopolo module Reports # Public: Write the report data to the given file name # # data - Array of report data, each element being a line of the CSV # filename - The name of the file to write to def self.write_csv data, filename CSV.open filename, "w" do |file| data.each do |line| file.puts line end end end end end
Version data entries
42 entries across 42 versions & 1 rubygems