From: James Gray Date: 2008-01-11T23:02:35+09:00 Subject: Re: how to use highline On Jan 10, 2008, at 11:42 PM, Dante Regis wrote: > Hi there > > I believe you are actually trying to do this: > menu.choice(:load, "Load a file") do |a, b| > system("dir c:\temp") > end > menu.choice(:close, "Close a file") do |a, b| > puts "hmm, let's close it" > end > > You see, command and details, on the example, are variable names. > You don't > actually put what you want the menu to execute in there. It is a > Ruby Block, > maybe you would want to read something on > http://whytheluckystiff.net/ruby/pickaxe/html/tut_containers.html > (search > for "Blocks for Transactions" on the page). You may also want to over HighLine's menu examples: http://highline.rubyforge.org/svn/trunk/highline/examples/menus.rb James Edward Gray II