Skip to content

Commit 5a834ab

Browse files
authored
Merge pull request #133 from dorianmariecom/patch-1
2 parents 4520340 + 6922824 commit 5a834ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/terminal-table/table.rb

+2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ def number_of_columns
109109
# Set the headings
110110

111111
def headings= arrays
112+
return if arrays.nil?
113+
112114
arrays = [arrays] unless arrays.first.is_a?(Array)
113115
@headings = arrays.map do |array|
114116
row = Row.new(self, array)

0 commit comments

Comments
 (0)