Playground

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

Editor

Output