class Covered::Summary
def call(wrapper, output = $stdout)
def call(wrapper, output = $stdout) terminal = self.terminal(output) statistics = self.each(wrapper) do |coverage| line_offset = 1 path = wrapper.relative_path(coverage.path) terminal.puts "" terminal.puts path, style: :path counts = coverage.counts coverage.read do |file| print_line_header(terminal) file.each_line do |line| count = counts[line_offset] print_annotations(terminal, coverage, line, line_offset) print_line(terminal, line, line_offset, count) line_offset += 1 end end coverage.print(output) end statistics.print(output) end