method
visit_String
v2_4_6 -
Show latest stable
- Class:
Gem::NoAliasYAMLTree
visit_String(str)public
No documentation available.
# File lib/rubygems/psych_tree.rb, line 9
def visit_String(str)
return super unless str == '=' # or whatever you want
quote = Psych::Nodes::Scalar::SINGLE_QUOTED
@emitter.scalar str, nil, nil, false, true, quote
end