End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::SafeYAML.load
load(input)
lib/rubygems/safe_yaml.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/safe_yaml.rb, line 36
def self.load(input)
if Gem::Version.new(Psych::VERSION) >= Gem::Version.new("3.1.0.pre1")
::Psych.safe_load(input, permitted_classes: [::Symbol])
else
::Psych.safe_load(input, [::Symbol])
end
end
No documentation available