chruby is a tiny shell script that modifies a few environment variables (mostly $PATH) to point to a specific Ruby installation. It also features a separate script that switches Ruby versions automatically when changing folders, which is optional.