install ruby mac

Shell
brew install ruby/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Source

Also in Shell: