Ruby playground

def greet(name)
  puts "Hello, #{name}!"
end

greet("World")
This playground is completely in-browser.

The first run will download the Ruby runtime (24.5 MB), so it may take some time. Subsequent runs will be instantaneous.

Ruby is a dynamic, open source programming language with a focus on simplicity and productivity.

⛫ homepage • αω tutorial • ⚘ community

Sandbox details

Ruby version:       3.2
sandbox engine:     wasi
sandbox name:       ruby
allowed commands:   run
in-browser:         ✔

Usage example:

```ruby
puts "Hello, World!"
```

<codapi-snippet engine="wasi" sandbox="ruby" editor="basic">
</codapi-snippet>

Documentation