Class
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.
Class Methods
lib/rubygems/errors.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/lib/rubygems/errors.rb, line 28
def initialize name, requirement
@name = name
@requirement = requirement
end
No documentation available
Instance Methods
lib/rubygems/errors.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/lib/rubygems/errors.rb, line 40
def build_message
total = Gem::Specification.stubs.size
"Could not find '#{name}' (#{requirement}) among #{total} total gem(s)\n"
end
No documentation available