Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class method

Gem.activated_gem_paths

activated_gem_paths

The number of paths in the ‘$LOAD_PATH` from activated gems. Used to prioritize -I and `ENV` entries during require.

See also .add_to_load_path .already_loaded? also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1