Sha256: 7f6ab5f75640d3acd70bb3a97b14c9c613f413383868092d7a83f77bec22e399
Contents?: true
Size: 262 Bytes
Versions: 2
Compression:
Stored size: 262 Bytes
Contents
module ExportTo module Exporter class Csv < Struct.new(:rows) def export CSV.generate(force_quotes: true) do |csv| rows.each! do |columns, model, x| csv << columns end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
export_to-1.1.0 | lib/export_to/exporter/csv.rb |
export_to-1.0.0 | lib/export_to/exporter/csv.rb |