Date: September 29, 2005 10:28:59 AM EDT
Subject: [TxMt] Input from gets in Ruby
Please excuse the simple question, but I am experimenting with TextMate and Ruby. The output from running a Ruby script goes to a stdout window. However, I can't figure out how to get input from the gets method. Is there any way to read from stdin when running a Ruby script from the Run Command>Ruby>Run Ruby menu?
Thanks for any help.
Bill Shobe
Date: September 29, 2005 12:08:58 PM EDT
Subject: Re: [TxMt] Input from gets in Ruby
<snip>
Yes, this happens automatically, but stdin is redirected to read input from a dialog which should pop up whenever your script does a gets or similar.
-- Sune.
<snip>
Date: September 29, 2005 1:58:10 PM EDT
Subject: Re: [TxMt] Input from gets in Ruby
On 29/09/2005, at 19.54, Kumar McMillan wrote:
oh, hehe, it is just the Run Ruby command. Sorry, I thought you meant
this was built into TextMate!
Nope :-p, but it's built into the Run Python command also :-).
-- Sune.