From: Mike Stok Date: 2006-04-15T20:42:42+09:00 Subject: Re: HighLine - examples for using "list" On 15-Apr-06, at 1:52 AM, Sy Ali wrote: > http://highline.rubyforge.org/doc/classes/HighLine.html > > I'm still very green, and I find it easier to read code than > documentation. I'm not sure how to use HighLine's "list" feature > (specifically colums_across) and I can't find any example code > anywhere. > > Does anyone have experience with list? Have you tried playing with it? I had a look at the docs and then grabbed the gem; does this (or its output) give you anything help: #!/usr/bin/env ruby require 'rubygems' require 'highline' h = HighLine.new names = %w( Adrian Tony Bill Robert Peter Michael John Keith ) puts h.list(names) puts h.list(names, :columns_across) puts h.list(names, :columns_across, 3) h.wrap_at = 20 puts h.list(names, :columns_across) Mike -- Mike Stok http://www.stok.ca/~mike/ The "`Stok' disclaimers" apply.