Support for the Ruby 2.4 series has ended. See here for reference.

In Files

  • rubygems/errors.rb

Methods

Class/Module Index [+]

Quicksearch

Gem::MissingSpecError

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) click to toggle source
 
               # File rubygems/errors.rb, line 28
def initialize name, requirement
  @name        = name
  @requirement = requirement
end