Also this.

http://stackoverflow.com/questions/9651065/ruby-loop-until-gets-issue


On Fri, Aug 9, 2013 at 9:15 AM, Cliff Rosson <cliff.rosson / gmail.com> wrote:

> Kernel.trap('INT') { run = false }
>
> while run
>
> end
>
>
>
> http://stackoverflow.com/questions/4508764/how-can-i-add-a-user-interrupt-to-an-infinite-loop
>
>
> On Fri, Aug 9, 2013 at 8:58 AM, Tamara Temple <tamouse.lists / gmail.com>wrote:
>
>>
>> On Aug 9, 2013, at 9:48 AM, gotostereo .. <lists / ruby-forum.com> wrote:
>>
>> > input = gets.chomp
>> > this line pauses code
>> > i need as in your example, but without pause, without stop code.
>> >
>> > --
>> > Posted via http://www.ruby-forum.com/.
>>
>> Ruby documentation:
>>
>> http://docs.ruby-doc.com/docs/ProgrammingRuby/
>>
>>
>>
>>
>>
>
>
> --
> - Cliff Rosson
>



-- 
- Cliff Rosson