Exception: Gem::LoadError

Inherits:
LoadError show all
Defined in:
lib/rubygems/errors.rb

Overview

Raised when RubyGems is unable to load or activate a gem. Contains the name and version requirements of the gem that either conflicts with already activated gems or that RubyGems is otherwise unable to activate.

Direct Known Subclasses

ConflictError, MissingSpecError

Instance Attribute Summary collapse

Method Summary

Methods inherited from LoadError

#message

Methods inherited from Exception

#as_json, json_create, #to_json

Instance Attribute Details

#nameObject

Name of gem



18
19
20
# File 'lib/rubygems/errors.rb', line 18

def name
  @name
end

#requirementObject

Version requirement of gem



21
22
23
# File 'lib/rubygems/errors.rb', line 21

def requirement
  @requirement
end