Sha256: f5804163da9964edfca6a76e5e32b8a58a52369fc4548359fa54016278810dc3
Contents?: true
Size: 209 Bytes
Versions: 12
Compression:
Stored size: 209 Bytes
Contents
require 'csv' class CsvArray < Array def to_csv options = {} CSV.generate(options) do |csv| self.each do |element| csv << [element[:value], element[:message]] end end end end
Version data entries
12 entries across 12 versions & 1 rubygems