End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem.load_yaml
load_yaml
lib/rubygems.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems.rb, line 619
def self.load_yaml
return if @yaml_loaded
begin
# Try requiring the gem version *or* stdlib version of psych.
require 'psych'
rescue ::LoadError
# If we can't load psych, that's fine, go on.
else
require_relative 'rubygems/psych_additions'
require_relative 'rubygems/psych_tree'
end
require 'yaml'
require_relative 'rubygems/safe_yaml'
@yaml_loaded = true
end
See also
.load_plugins
.location_of_caller
.load_path_insert_index
.marshal_version
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1