Ruby

JavaScript

Loading @ruby/prism WebAssembly module...
Self-Hosted Demo: This demo runs Ruby2JS entirely in the browser using @ruby/prism (WebAssembly) for parsing and the Ruby2JS converter transpiled to JavaScript.

Supported: Classes, methods, blocks, string interpolation, arrays, hashes, if/else/case, loops, operators, the full transliteration test suite, and the functions filter (putsconsole.log, .each.forEach, .select.filter, etc.).