I know it should never be done, but I accidentally removed the folder /usr/bin/ruby from my Mac OS X. With that I lost all pre-installed ruby files. Now when trying to install Homebrew, for instance, I get the error:
-bash: /usr/bin/ruby: No such file or directory
How can I get pre-installed ruby back to /usr/bin?