Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../proc/self/root/usr/share/ruby
File: yaml.rb
# frozen_string_literal: false
[0] Fix | Delete
##
[1] Fix | Delete
# The YAML module is an alias of Psych, the YAML engine for Ruby.
[2] Fix | Delete
[3] Fix | Delete
begin
[4] Fix | Delete
require 'psych'
[5] Fix | Delete
rescue LoadError
[6] Fix | Delete
warn "It seems your ruby installation is missing psych (for YAML output).\n" \
[7] Fix | Delete
"To eliminate this warning, please install libyaml and reinstall your ruby.\n",
[8] Fix | Delete
uplevel: 1
[9] Fix | Delete
raise
[10] Fix | Delete
end
[11] Fix | Delete
[12] Fix | Delete
YAML = Psych # :nodoc:
[13] Fix | Delete
[14] Fix | Delete
# YAML Ain't Markup Language
[15] Fix | Delete
#
[16] Fix | Delete
# This module provides a Ruby interface for data serialization in YAML format.
[17] Fix | Delete
#
[18] Fix | Delete
# The underlying implementation is the libyaml wrapper Psych.
[19] Fix | Delete
#
[20] Fix | Delete
# == Usage
[21] Fix | Delete
#
[22] Fix | Delete
# Working with YAML can be very simple, for example:
[23] Fix | Delete
#
[24] Fix | Delete
# require 'yaml'
[25] Fix | Delete
# # Parse a YAML string
[26] Fix | Delete
# YAML.load("--- foo") #=> "foo"
[27] Fix | Delete
#
[28] Fix | Delete
# # Emit some YAML
[29] Fix | Delete
# YAML.dump("foo") # => "--- foo\n...\n"
[30] Fix | Delete
# { :a => 'b'}.to_yaml # => "---\n:a: b\n"
[31] Fix | Delete
#
[32] Fix | Delete
# == Security
[33] Fix | Delete
#
[34] Fix | Delete
# Do not use YAML to load untrusted data. Doing so is unsafe and could allow
[35] Fix | Delete
# malicious input to execute arbitrary code inside your application. Please see
[36] Fix | Delete
# doc/security.rdoc for more information.
[37] Fix | Delete
#
[38] Fix | Delete
# == History
[39] Fix | Delete
#
[40] Fix | Delete
# Syck was the original for YAML implementation in Ruby's standard library
[41] Fix | Delete
# developed by why the lucky stiff.
[42] Fix | Delete
#
[43] Fix | Delete
# You can still use Syck, if you prefer, for parsing and emitting YAML, but you
[44] Fix | Delete
# must install the 'syck' gem now in order to use it.
[45] Fix | Delete
#
[46] Fix | Delete
# In older Ruby versions, ie. <= 1.9, Syck is still provided, however it was
[47] Fix | Delete
# completely removed with the release of Ruby 2.0.0.
[48] Fix | Delete
#
[49] Fix | Delete
# == More info
[50] Fix | Delete
#
[51] Fix | Delete
# For more advanced details on the implementation see Psych, and also check out
[52] Fix | Delete
# http://yaml.org for spec details and other helpful information.
[53] Fix | Delete
#
[54] Fix | Delete
# Psych is maintained by Aaron Patterson on github: https://github.com/tenderlove/psych
[55] Fix | Delete
#
[56] Fix | Delete
# Syck can also be found on github: https://github.com/tenderlove/syck
[57] Fix | Delete
module YAML
[58] Fix | Delete
end
[59] Fix | Delete
[60] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function