Ruby
JavaScript
Self-Hosted Demo: This demo runs Ruby2JS entirely in the browser using
Supported: Classes, methods, blocks, string interpolation, arrays, hashes,
@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 (puts → console.log,
.each → .forEach, .select → .filter, etc.).