We first need a Ruby version manager, we'll use rbenv in this guide. To install rbenv, follow all 5 steps from here: https://github.com/rbenv/rbenv#basic-github-checkout.
Now that we have rbenv and the ruby-build plugin installed, we can start installing Ruby.