[TxMt] Re: Input from gets in Ruby
William M Shobe
shobe at virginia.edu
Fri Sep 30 15:12:01 UTC 2005
On Sep 30, 2005, at 10:15 AM, textmate-request at lists.macromates.com
wrote:
>
> From: Allan Odgaard <allan at macromates.com>
> Date: September 30, 2005 10:14:31 AM EDT
> To: TextMate users <textmate at lists.macromates.com>
> Subject: Re: [TxMt] Re: Input from gets in Ruby (Sune Foldager)
> Reply-To: TextMate users <textmate at lists.macromates.com>
>
>
> 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:
>
>
> <pastedGraphic.png>
>
> Entering a string and pressing return outputs the strings and
> finishes the program.
>
>
The latest build works! Thank you.
Bill
PS When I download the latest build, there is a second file called
"mate". Is there something I need to do with this file?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20050930/fd69229c/attachment.html>
More information about the textmate
mailing list