From: Dmitri Colebatch Date: 2003-01-09T12:03:14+09:00 Subject: Re: prompt > > > Is there a Ruby idiom to do prompting? For example, > > > > > > ../rm.rb: remove `t'? y > > > > also, couldn't you do this with the readline module? > > > > brennan > > gets doesn't work. I tried it at the beginning. I think the problem is > that it Reads the *next* ``line'' from the I/O stream. (So it can't > read the string following the question mark.) huh? so is the following really stupid: def run while (cmd = gets.chomp) eval(cmd) end end ? I'm writing a simple little app to introduce myself to ruby doing pretty much that... tia dim