Ruby Playground
main.rb
terminal output
Loading Ruby WASM engine…
Help & Shortcuts
Shortcuts
Run codeCtrl+Enter
Clear outputCtrl+L
Comment lineCtrl+/
FindCtrl+F
Close modalEsc
About
Runs real Ruby entirely in your browser using Opal.js compiler. 100% client-side — your code never leaves your browser, no server needed.
puts / print / p
classes
modules
blocks
exceptions
Enumerable
Limitations
gets/STDINnot supported- File I/O unavailable (sandboxed browser)
require 'json'/ native gems unavailable- 15-second execution timeout
Tips
- Use
putsto print,pto inspect - Share encodes your code in the URL
- Save downloads a
.rbfile - Drag the divider to resize panels
Comments
Post a Comment