summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorOlle Jonsson <olle.jonsson@gmail.com>2017-12-25 16:11:22 +0100
committerGitHub <noreply@github.com>2017-12-25 16:11:22 +0100
commitbc2c018fa8938504cbeb756882ee104b9c96b1a5 (patch)
tree4414a5299b3cbd43a553e9a9035e0567f0d3d8e9 /README.md
parent3628243bc0af1eb19f1844c7e22da6aa6d46e074 (diff)
downloadpsych-bc2c018fa8938504cbeb756882ee104b9c96b1a5.tar.gz
README: add ruby annotation to Example [ci skip]
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 6 insertions, 4 deletions
diff --git a/README.md b/README.md
index 1e84ed5..45eb45e 100644
--- a/README.md
+++ b/README.md
@@ -14,11 +14,13 @@ serialize and de-serialize most Ruby objects to and from the YAML format.
## Examples
- # Load YAML in to a Ruby object
- Psych.load('--- foo') # => 'foo'
+```ruby
+# Load YAML in to a Ruby object
+Psych.load('--- foo') # => 'foo'
- # Emit YAML from a Ruby object
- Psych.dump("foo") # => "--- foo\n...\n"
+# Emit YAML from a Ruby object
+Psych.dump("foo") # => "--- foo\n...\n"
+```
## Dependencies