Reverse String

Reverse the order of characters in a string, creating a mirror image of the original text.

Code

General
str.reverse

Parameters

The string to reverse

Server

More Ruby Snippets