Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
# -*- encoding: utf-8 -*-
#
# -
require 'psych'
ary = ["Jakub Kuźma", "Timo Rößner"]
p ary.first.encoding
builder = Psych::Visitors::YAMLTree.new({})
builder << ary
ast = builder.tree
io = StringIO.new
Psych::Visitors::Emitter.new(io).accept(ast)
str = io.string
p str
p str.encoding
str.gsub(/ !!null \n/, " \n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.