class Snuffle::Formatters::Csv
Public Instance Methods
file_extension()
click to toggle source
# File lib/snuffle/formatters/csv.rb, line 21 def file_extension ".csv" end
header()
click to toggle source
# File lib/snuffle/formatters/csv.rb, line 8 def header columns.join(',') end
rows()
click to toggle source
# File lib/snuffle/formatters/csv.rb, line 12 def rows summary.cohorts.group_by{|c| c.values}.map do |cohort| [summary.path_to_file, summary.class_name, cohort[0].join("; "), cohort[1].map(&:line_numbers).join("; ")].join(',') end end