I want to know how to update to the latest stable version of Ruby with Homebrew. I am not interested in using RVM. Thanks.
I would use ruby-build
with rbenv
. The following lines install Ruby 2.7.2 and set it as your default Ruby version:
$ brew update
$ brew install ruby-build
$ brew install rbenv
$ rbenv install 2.7.2
$ rbenv global 2.7.2