diff options
author | Olle Jonsson <olle.jonsson@gmail.com> | 2017-12-25 16:11:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-25 16:11:22 +0100 |
commit | bc2c018fa8938504cbeb756882ee104b9c96b1a5 (patch) | |
tree | 4414a5299b3cbd43a553e9a9035e0567f0d3d8e9 | |
parent | 3628243bc0af1eb19f1844c7e22da6aa6d46e074 (diff) | |
download | psych-bc2c018fa8938504cbeb756882ee104b9c96b1a5.tar.gz |
README: add ruby annotation to Example [ci skip]
-rw-r--r-- | README.md | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |