Skip to content

Commit

Permalink
Merge pull request #133 from dorianmariecom/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
nateberkopec authored Nov 1, 2024
2 parents 4520340 + 6922824 commit 5a834ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/terminal-table/table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ def number_of_columns
# Set the headings

def headings= arrays
return if arrays.nil?

arrays = [arrays] unless arrays.first.is_a?(Array)
@headings = arrays.map do |array|
row = Row.new(self, array)
Expand Down

0 comments on commit 5a834ab

Please sign in to comment.