Sha256: ef19cdce4a46c6d33c30da6f8b88761b351fcbd46646aadbc65ffe9a874013cd
Contents?: true
Size: 624 Bytes
Versions: 1
Compression:
Stored size: 624 Bytes
Contents
module Snuffle module Formatters class Csv include Formatters::Base def header columns.join(',') end def rows # summary.object_candidates.map do |candidate| # [summary.path_to_file, summary.class_name, "##{candidate.join(" #")}"].join(',') # end 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 def footer end def file_extension ".csv" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
snuffle-0.9.1 | lib/snuffle/formatters/csv.rb |