HighLine:HighLine#list の動作

>> require "highline/import"
=> true
>> HighLine.new.list((1..10).to_a.map {|x| x.to_s}, :rows)
=> "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n"
>> HighLine.new.list([], :inline)
=> ""
>> HighLine.new.list(["1"], :inline)
=> "1"
>> HighLine.new.list(["1", "2"], :inline)
=> "1 or 2"
>> HighLine.new.list(["1", "2", "3"], :inline)
=> "1, 2 or 3"
>> HighLine.new.list(["1", "2", "3"], :inline, "*hoge*")
=> "1, 2*hoge*3"
>> HighLine.new.list((1..10).to_a.map {|x| x.to_s}, :columns_across, 2)
=> "1   2 \n3   4 \n5   6 \n7   8 \n9   10\n"
>> HighLine.new.list((1..10).to_a.map {|x| x.to_s}, :columns_across, 3)
=> "1   2   3 \n4   5   6 \n7   8   9 \n10\n"
>> HighLine.new.list((1..10).to_a.map {|x| x.to_s}, :columns_across, 4)
=> "1   2   3   4 \n5   6   7   8 \n9   10\n"
>> HighLine.new.list((1..10).to_a.map {|x| x.to_s}, :columns_down, 2)
=> "1   6 \n2   7 \n3   8 \n4   9 \n5   10\n"
>> HighLine.new.list((1..10).to_a.map {|x| x.to_s}, :columns_down, 3)
=> "1   5   9 \n2   6   10\n3   7 \n4   8 \n"
>> HighLine.new.list((1..10).to_a.map {|x| x.to_s}, :columns_down, 4)
=> "1   4   7   10\n2   5   8 \n3   6   9 \n"