Change Ruby version with RBENV
Check versions installed on your machine:
rbenv versions
Install a specific version to your machine:
(replace 3.1.2 with the version you want to install)
rbenv install 3.1.2
Install the latest stable version of Ruby:
rbenv install -l
Set the Ruby version of a specific application by