Method: CoverMe::DirectoryReport#initialize

Defined in:
lib/cover_me/directory_report.rb

#initialize(name, reports) ⇒ DirectoryReport

:nodoc:



8
9
10
11
12
13
14
15
16
17
# File 'lib/cover_me/directory_report.rb', line 8

def initialize(name, reports) # :nodoc:
  self.name = name
  self.reports = reports
  self.lines_of_code = 0
  self.lines_executed = 0
  reports.each do |report|
    self.lines_of_code += report.lines_of_code
    self.lines_executed += report.lines_executed
  end
end