Skip to content

Commit 0ef1f38

Browse files
committed
Merge pull request #75 from CGamesPlay/patch-1
Convert Set to Array before using as header
2 parents 4fa06a9 + c2a38b6 commit 0ef1f38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/iruby/formatter.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ def table(obj, maxrows: 15, maxcols: 15, **options)
6161
rows << row
6262
end
6363

64-
if header = keys
64+
if keys
65+
header = keys.to_a
6566
keys.merge(0...array_size)
6667
else
6768
keys = 0...array_size

0 commit comments

Comments
 (0)