End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Object#to_yaml
to_yaml(options = {})
ext/psych/lib/psych/core_ext.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/ext/psych/lib/psych/core_ext.rb, line 12
def to_yaml options = {}
Psych.dump self, options
end
Convert an object to YAML. See Psych.dump for more information on the available options.