I recently installed the latest version of Ruby which is 2.4.1 to run a script that required a gem called prawn. Now, I installed ruby using Homebrew and did the export path within ~/.bash_profile, however, removing the $PATH statement is not allowing me to revert back to 2.0.0 (system default) any idea, how, or why.
What I did try doing was uninstalling ruby with homebrew, (the latest version) however, that just removed ruby all together; using ruby -v would say there was no ruby actually installed despite the fact that 2.0.0 is still there.
ruby -v
returns ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
which ruby
returns /usr/local/bin/ruby
whereis ruby
returns /usr/bin/ruby
echo $PATH
returns /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
SOLVED. Used brew unlink ruby