How does mac Upgrade ruby to 2.4.0

  question, ruby

First round. My version of Emperor is hopeless.
I don’t remember how much macos is the latest system. . . The normal channel is up to date
Ruby version is currently 2.3.1.
I cannot upgrade to 2.4.0 or 2.3.3 with rvm. How can I upgrade?

oops。 . I can’t recite the wrong content. Mac is not at hand.

First install the MAC’s package manager Homebrew and enter it at the terminal

ruby -e "$(curl -fsSL \ https://raw.githubusercontent.com/Homebrew/install/master/install)

Ruby can then be updated using Homebrew:

brew install ruby