If all you want it to install the latest version of Ruby and don’t require different versions of it installed side by side you can use Homebrew to install it on your Mac.
All you must do is enter this command
brew install ruby
Your Ruby development is now only a few gems away.
Thank you for reading