method
visit_Symbol
v2_2_9 -
Show latest stable
- Class:
Psych::Visitors::YAMLTree
visit_Symbol(o)public
No documentation available.
# File ext/psych/lib/psych/visitors/yaml_tree.rb, line 408
def visit_Symbol o
if o.empty?
@emitter.scalar "", nil, '!ruby/symbol', false, false, Nodes::Scalar::ANY
else
@emitter.scalar ":#{o}", nil, nil, true, false, Nodes::Scalar::ANY
end
end