Sha256: aeb06cc77d6cb8014e60f1c96581bc074611bf5880b9af4a727b9b70664584ff
Contents?: true
Size: 306 Bytes
Versions: 1
Compression:
Stored size: 306 Bytes
Contents
class GitlocMarissa module LineCounts def self.call(files_and_bodies) files_and_counts = files_and_bodies.map do |file, body| count = body.lines.count { |line| line !~ /^\s*$/ } [file, count] rescue ArgumentError end files_and_counts.compact end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gitloc-marissa-0.2.0 | lib/gitloc_marissa/line_counts.rb |