Project

General

Profile

Misc #14567 ยป yaml-docs.patch

zverok (Victor Shepelev), 03/02/2018 12:43 PM

View differences:

lib/yaml.rb
# YAML.dump("foo") # => "--- foo\n...\n"
# { :a => 'b'}.to_yaml # => "---\n:a: b\n"
#
# As the implementation is provided by Psych library, detailed usage instructions
# could be found in that library's docs (also part of standard library). In fact,
# all that <tt>require 'yaml'</tt> currently does, is providing +YAML+ constant
# as a synonym for +Psych+.
#
# == Security
#
# Do not use YAML to load untrusted data. Doing so is unsafe and could allow
    (1-1/1)