method

reverse

ruby latest stable - Class: String
reverse()
public

Returns a new string with the characters from str in reverse order.

"stressed".reverse   #=> "desserts"