summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/yaml.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/yaml.rb b/lib/yaml.rb
index aa0a1eb470..e47e0a7f9b 100644
--- a/lib/yaml.rb
+++ b/lib/yaml.rb
@@ -1,6 +1,4 @@
# frozen_string_literal: false
-##
-# The YAML module is an alias of Psych, the YAML engine for Ruby.
begin
require 'psych'
@@ -17,7 +15,7 @@ YAML = Psych # :nodoc:
#
# This module provides a Ruby interface for data serialization in YAML format.
#
-# The underlying implementation is the libyaml wrapper Psych.
+# The YAML module is an alias of Psych, the YAML engine for Ruby.
#
# == Usage
#
@@ -31,6 +29,9 @@ YAML = Psych # :nodoc:
# YAML.dump("foo") # => "--- foo\n...\n"
# { :a => 'b'}.to_yaml # => "---\n:a: b\n"
#
+# As the implementation is provided by the Psych library, detailed documentation
+# can be found in that library's docs (also part of standard library).
+#
# == Security
#
# Do not use YAML to load untrusted data. Doing so is unsafe and could allow