> For the complete documentation index, see [llms.txt](https://ploegert.gitbook.io/til/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ploegert.gitbook.io/til/programmy/ruby/list-the-running-ruby-version.md).

# List The Running Ruby Version

The running Ruby version can be listed with the `RUBY_VERSION` constant.

For instance, if my Ruby version is 3.0.0, then I could get the version like so:

```ruby
> RUBY_VERSION
=> "3.0.0"
```

This is nice if you just want to check in an IRB session or if you need it as part of a script.

[source](https://blog.arkency.com/which-ruby-version-am-i-using-how-to-check/)
