How can I install Ruby globally using Brew on my machine?

How can I install Ruby globally using Brew on my machine?

Hi Rebecca,

You can install Ruby globally using Brew with the following commands:

brew update
brew install ruby
echo 'export PATH=/usr/local/Cellar/ruby/2.4.1_1/bin:$PATH' >> ~/.bash_profile