The Wayback Machine - https://web.archive.org/web/20211001081602/https://github.com/ruby/ruby/blob/master/gem_prelude.rb
Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
begin
require 'rubygems'
rescue LoadError => e
raise unless e.path == 'rubygems'
warn "`RubyGems' were not loaded."
end if defined?(Gem)
begin
require 'error_highlight'
rescue LoadError
warn "`error_highlight' was not loaded."
end if defined?(ErrorHighlight)
begin
require 'did_you_mean'
rescue LoadError
warn "`did_you_mean' was not loaded."
end if defined?(DidYouMean)