I would use ruby-build with rbenv. The following lines install Ruby 3.2.0 and set it as your default Ruby version:
$ brew update
$ brew install ruby-build
$ brew install rbenv
$ rbenv install 3.2.0
$ rbenv global 3.2.0
I would use ruby-build with rbenv. The following lines install Ruby 3.2.0 and set it as your default Ruby version:
$ brew update
$ brew install ruby-build
$ brew install rbenv
$ rbenv install 3.2.0
$ rbenv global 3.2.0