Official site
What is RVM
RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.
Installation
Install
curl -sSL https://get.rvm.io | bash -s stable
Run command or add to zshrc file
source /Users/broche/.rvm/scripts/rvm
Check
rvm -v
Install Ruby
rvm install 2.2
Change default
rvm use 2.2 --default
Others
rvm list 查看已安装ruby
rvm list known 列出ruby可安装版本信息
rvm remove 2.2.2 卸载一个已安装的ruby版本