Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem.load_yaml
() -> bool?
load_yaml
lib/rubygems.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems.rb, line 656
def self.load_yaml
return if @yaml_loaded
@use_psych = ENV["RUBYGEMS_USE_PSYCH"] == "true" ||
(defined?(@configuration) && @configuration && !@configuration[:use_psych].nil?)
if @use_psych
require "psych"
require_relative "rubygems/psych_tree"
end
require_relative "rubygems/yaml_serializer"
require_relative "rubygems/safe_yaml"
@yaml_loaded = true
end
See also
.load_safe_marshal
.location_of_caller
.load_plugins
.marshal_version
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0