Forum: Ruby on Rails string functions

6f5dfaa960bc1fcaf9045b013f023344?d=identicon&s=25 alvis smith (alvis)
on 2013-10-09 12:57
Hi to all !
I am trainee on RoR. I did not know how to use string functions? Please
help me.I am waiting for your positive response.
14b5582046b4e7b24ab69b7886a35868?d=identicon&s=25 Joel Pearson (virtuoso)
on 2013-10-09 12:59
The String class has methods associated with it. You use these the same
way as most methods in Ruby:

s = 'a string'

s.upcase
#=> "A STRING"

s.reverse
#=> "GNIRTS A"
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2013-10-09 13:14
(Received via mailing list)
On 9 October 2013 11:57, alvis smith <lists@ruby-forum.com> wrote:
> Hi to all !
> I am trainee on RoR. I did not know how to use string functions? Please
> help me.I am waiting for your positive response.

Googling for
ruby string
led me straight to http://ruby-doc.org/core-2.0.0/String.html

Colin
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.