Sha256: ae8db983dcf8d8ff5a874edf05afb9cef9e71bb786b9653784633b13e14c6b6f
Contents?: true
Size: 375 Bytes
Versions: 16
Compression:
Stored size: 375 Bytes
Contents
module Formatters class Csv include Formatters::Base def header columns.join(',') end def rows file.methods.inject([]) do |a, method| a << "#{file.class_name},#{method.prefix}#{method.name},#{method.complexity}" a end.join("\r\n") end def footer end def file_extension ".csv" end end end
Version data entries
16 entries across 16 versions & 1 rubygems