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,

···

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

Hi --

···

On Tue, 10 Oct 2006, Acoole Cooland 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

--
                   David A. Black | dblack@wobblini.net
Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3]
DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4]
[1] Ruby for Rails | [3] http://www.rubypowerandlight.com
[2] http://dablog.rubypal.com | [4] http://www.rubycentral.org

word = string.gets
puts word.reverse

Farrel

···

On 09/10/06, Acoole Cooland <andrewchinna@yahoo.co.uk> 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

Thanks,

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

$stdin.gets.reverse

···

On 06-10-09, at 12:11, Acoole Cooland 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

--
Jeremy Tregunna
jtregunna@blurgle.ca

Hi --

···

On Tue, 10 Oct 2006, Farrel Lifson wrote:

On 09/10/06, Acoole Cooland <andrewchinna@yahoo.co.uk> 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

Thanks,

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

word = string.gets

s/string\.// :slight_smile:

David

--
                   David A. Black | dblack@wobblini.net
Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3]
DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4]
[1] Ruby for Rails | [3] http://www.rubypowerandlight.com
[2] http://dablog.rubypal.com | [4] http://www.rubycentral.org

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

ACOOLE

···

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

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

Martin

···

On 10/9/06, Acoole Cooland <andrewchinna@yahoo.co.uk> wrote:

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

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.

···

On 10/9/06, Martin Coxall <pseudo.meta@gmail.com> wrote:

On 10/9/06, Acoole Cooland <andrewchinna@yahoo.co.uk> 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