Raised when trying to activate a gem, and that gem does not exist on the system. Instead of rescuing from this class, make sure to rescue from the superclass Gem::LoadError to catch all types of load errors.
Public Class Methods
new(name, requirement, extra_message=nil)click to toggle source
# File ruby-3.1.2/lib/rubygems/errors.rb, line 41defbuild_messagetotal = Gem::Specification.stubs.size"Could not find '#{name}' (#{requirement}) among #{total} total gem(s)\n"end