This guide will not install a specific Ruby version you want, although, it will setup rbenv
so you can manage multiple Ruby versions.
It assumes that the project that requires a specific Ruby version has a file .ruby-version
in the root of the project. So, simply running rbenv install
from project root directory will use the version specified in that file and install it.
But if you still want to install a specific version of Ruby without using .ruby-version
file, you can do so using:
$ rbenv install 3.3.5