Skip to content

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

class method

Gem.try_activate

try_activate(path)

Try to activate a gem containing path. Returns true if activation succeeded or wasn’t needed because it was already activated. Returns false if it can’t find the path in a gem.

See also .time .ui .suffix_regexp .use_gemdeps also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0