Class: Array
Instance Method Summary collapse
Instance Method Details
#to_comma(style = :default) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/comma.rb', line 6 def to_comma(style = :default) FasterCSV.generate(:col_sep => ";") do |csv| return "" if empty? csv << first.to_comma_headers(style) each do |object| csv << object.to_comma(style) end end end |