lib/dri/utils/table.rb in dri-0.5.1 vs lib/dri/utils/table.rb in dri-0.6.0

- old
+ new

@@ -3,18 +3,18 @@ require 'tty-table' module Dri module Utils module Table - def print_table(headers, rows, alignments: []) + def print_table(headers, rows, alignments: [], **kwargs) if alignments.empty? (1..headers.size).each do alignments.push(:center) end end table = TTY::Table.new(headers, rows) - puts table.render(:ascii, resize: true, multiline: true, alignments: alignments) + puts table.render(:ascii, resize: true, multiline: true, alignments: alignments, **kwargs) end end end end