Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jamie Tanna
jvt.me
Commits
7534c30d
Commit
7534c30d
authored
May 14, 2022
by
Jamie Tanna
Browse files
MP: Update article posts/2022/05/13/yaml-string
parent
13db37f9
Pipeline
#538921779
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
content/posts/2022-05-13-yaml-string.md
View file @
7534c30d
---
title
:
"
Constructing
a
serialised
YAML
string
in
Ruby"
description
:
"
How
to
convert
a
YAML
document
to
a
string
representation,
preserving
escaped
newlines,
with
Ruby."
description
:
"
How
to
convert
a
YAML
document
to
a
string
representation,
preserving
\
\
escaped
newlines,
with
Ruby."
date
:
"
2022-05-13T18:19:03+0100"
syndication
:
-
"
https://twitter.com/JamieTanna/status/1525264685767053313"
tags
:
-
blogumentation
-
command-line
-
ruby
-
yaml
license_code
:
Apache-2.0
license_prose
:
CC-BY-NC-SA-4.0
date
:
2022-05-13T18:19:03+0100
-
"
blogumentation"
-
"
command-line"
-
"
ruby"
-
"
yaml"
license_code
:
"
Apache-2.0"
license_prose
:
"
CC-BY-NC-SA-4.0"
slug
:
"
yaml-string"
syndication
:
-
"
https://brid.gy/publish/twitter"
---
Sometimes you want to convert a YAML document to an encoded format that can then i.e. be base64-encoded, or stored in another form.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment