In this episode, we discover the safe way to optionally enable features if a gem is installed.
Tag: loading code

Episode #242: Logical Require
Today we discuss the downsides of using require_relative, and explore a more robust way to handle code loading within projects and libraries.

Episode #240: Relative Require
Today our ongoing series on loading code brings us to the topic of loading features relative to the current file.

Episode #238: Gem Require
In this episode we dig into RubyGems in order to understand how it augments Ruby's built-in code loading mechanisms.

Episode #237: Require
As we continue to talk about the process of loading code in Ruby, today we look at how requiring features differs from loading files.

Episode #236: Wrapped Load
As we continue our exploration of how code is loaded into Ruby processes, today we take a look at a technique for running an external script inline without polluting the …

Episode #235: Load
Today's episode kicks off a little series on loading code in Ruby. To start off, we'll look at what it would take to recreate Ruby's logic for locating code files …