Online Ruby Compiler

Write, run, and test Ruby code directly in your browser — free, no signup required.

Simple2Code

Online Ruby Compiler

Output
Click Run to see the output here.