Allow Users

Ok so im new to ruby,

I Want to make it so the person using the application can type a word
and it will turn backwords

Thanks,

Hi –

On Tue, 10 Oct 2006, Acoole C. wrote:

Ok so im new to ruby,

I Want to make it so the person using the application can type a word
and it will turn backwords

ruby -e ‘puts gets.reverse’

David

On 09/10/06, Acoole C. [email protected] wrote:

word = string.gets
puts word.reverse

Farrel

Ok Well Can Someone please give me a FULL working script that works with
FreeRIDE

ACOOLE

Hi –

On Tue, 10 Oct 2006, Farrel L. wrote:

Posted via http://www.ruby-forum.com/.

word = string.gets

s/string.// :slight_smile:

David

On 10/9/06, Acoole C. [email protected] wrote:

Ok Well Can Someone please give me a FULL working script that works with
FreeRIDE

He just gave you one. Well, nearly. What do you want, blood?

Martin

On 06-10-09, at 12:11, Acoole C. wrote:

Ok so im new to ruby,

I Want to make it so the person using the application can type a word
and it will turn backwords

$stdin.gets.reverse

He probably didn’t realize that such a program would be so short. :slight_smile:

Acoole just put Farrel’s lines of code into freeride it should work
straight away.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs