Sha256: 60636c4208f7ae8d84f75b55109ff016745be5fac60731551b19ca59b2facf97
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
require 'pluginscan/printer' module Pluginscan class SLOCCountPrinter < Printer def print(sloccount) print_headline print_results(sloccount) print_blank_line end private def print_headline @output.puts "Total sloccount (from David A. Wheeler's 'SLOCCount' tool):".color(:blue) end def print_results(sloccount) total = sloccount.total.to_s.color(:red) @output.puts " #{total} source lines of code" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pluginscan-0.9.0 | lib/pluginscan/reports/sloccount_report/sloccount_printer.rb |