Playground

In the Playground you can try any Ruby code you like.
The Official Ruby documentation is included.

Editor

Output