Project

General

Profile

Misc #14567 ยป yaml-docs.patch

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

View differences:

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