End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Psych::Visitors::YAMLTree#visit_Symbol
visit_Symbol(o)
ext/psych/lib/psych/visitors/yaml_tree.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/ext/psych/lib/psych/visitors/yaml_tree.rb, line 367
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
No documentation available
See also
#visit_Struct
#visit_Time
#visit_String
#visit_TrueClass
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1