method

try_activate

ruby latest stable - Class: Gem
try_activate(path)
public

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.