Module: SimpleCov::SingleFile::Output::Table

Defined in:
lib/simplecov/single_file/output/table.rb

Instance Method Summary collapse

Instance Method Details

#output(lines) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/simplecov/single_file/output/table.rb', line 9

def output(lines)
  table = Terminal::Table.new(
    title: 'SimpleCov Single File Coverage',
    rows: lines,
    style: { all_separators: true }
  )

  puts table
end