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.
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"
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 Class: String (Ruby 2.0.0)
Colin