Ruby's Environment Variable API
summary
Shows exactly how Bundler RVM rbenv chruby and RubyGems control Ruby by mutating environment variables and load paths, with live experiments: GEM_PATH/GEM_HOME gets a temp gemdir and gem install lands there, RUBYLIB and -I add entries to $LOAD_PATH, and a strace demo proves require simply iterates the LOAD_PATH looking for .rb or .so. Explains that bundle exec sets RUBYOPT -> -rbundler/setup and prepends LOAD_PATH entries so requires resolve, so it’s practical debugging you can reproduce.
AI-written summary · about
chapters (7)
- 0:00Start
- 20:01$LOAD_PATH
- 25:44How to use the right version of a gem?
- 27:37How Bundler works
- 30:09Flags
- 33:07What Ruby cares about
- 34:33What Bundler cares about








