Method: CoverMe::Index#total_loc

Defined in:
lib/cover_me/index.rb

#total_locObject

Returns the total number of lines of code across all files.



18
19
20
21
22
23
# File 'lib/cover_me/index.rb', line 18

def total_loc
  unless @total_loc
    @total_loc = self.reports.inject(0) {|sum, x| sum += x.lines_of_code; sum}
  end
  return @total_loc
end