Sha256: 23c142d5757cd81cfe18cf87ce66704b6d3846842b9e2a4202afb056dde142c5

Contents?: true

Size: 251 Bytes

Versions: 3

Compression:

Stored size: 251 Bytes

Contents

if RUBY_VERSION >= '1.9'
  require 'csv'
else
  require 'fastercsv'
end

module Mysql2xxxx
  class CSV < Writer
    def to_file(f)
      f.write keys.to_csv
      stream_arrays do |ary|
        f.write ary.to_csv
      end
      nil
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mysql2xxxx-0.1.1 lib/mysql2xxxx/writer/csv.rb
mysql2xxxx-0.1.0 lib/mysql2xxxx/writer/csv.rb
mysql2xxxx-0.0.4 lib/mysql2xxxx/writer/csv.rb