Method: CaptainHoog::Git#render_table
- Defined in:
- lib/captain_hoog/git.rb
#render_table(rows, headings = []) ⇒ Object
Public: Renders a table.
rows - An Array of row contents headings - An Array of headlines
Returns the table as String.
38 39 40 41 42 |
# File 'lib/captain_hoog/git.rb', line 38 def render_table(rows, headings = []) table = ::Terminal::Table.new(headings: headings, rows: rows) table.to_s end |