Skip to Content Skip to Search

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.

Methods
N

Class Public methods

new(name, requirement, extra_message=nil)

# File ruby/lib/rubygems/errors.rb, line 29
def initialize(name, requirement, extra_message=nil)
  @name        = name
  @requirement = requirement
  @extra_message = extra_message
end