[TxMt] Re: Input from gets in Ruby (Sune Foldager)

Allan Odgaard allan at macromates.com
Fri Sep 30 14:14:31 UTC 2005


On 30/09/2005, at 16.09, William M Shobe wrote:

> I have tried using gets and no input dialog pops up.  Here is my code:
>
> puts "this is a test"
> puts gets
> puts "end of test"
>
> I use Run Ruby, and here is the output:

Works for me -- using latest build (http://get.textmate.org/):

cmd N (new buffer)
Paste previous 3 lines
option-ctrl-shift R (switch to Ruby)
cmd R (Run Ruby)

And this is what I see:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.png
Type: image/png
Size: 36940 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20050930/d76c424d/attachment.png>
-------------- next part --------------

Entering a string and pressing return outputs the strings and  
finishes the program.



More information about the textmate mailing list