summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <github@marc-andre.ca>2020-11-12 11:04:06 -0500
committerMarc-Andre Lafortune <github@marc-andre.ca>2020-11-12 11:07:36 -0500
commit0210e310d04cbc9b236ccdde6caaf79aab4eb794 (patch)
tree23b545e39d29ae7740f2f625a3a8ef3d2e375304 /README.md
parent67ecafb0e2aed5974adff45280080eab1e25656d (diff)
downloadpsych-0210e310d04cbc9b236ccdde6caaf79aab4eb794.tar.gz
Add `Psych.safe_load_file`. Tweak doc to provide `safe_` examples.
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 0fc68d9..405e955 100644
--- a/README.md
+++ b/README.md
@@ -12,8 +12,8 @@ serialize and de-serialize most Ruby objects to and from the YAML format.
## Examples
```ruby
-# Load YAML in to a Ruby object
-Psych.load('--- foo') # => 'foo'
+# Safely load YAML in to a Ruby object
+Psych.safe_load('--- foo') # => 'foo'
# Emit YAML from a Ruby object
Psych.dump("foo") # => "--- foo\n...\n"