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_Class
visit_Class(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 312
def visit_Class o
raise TypeError, "can't dump anonymous class: #{o}" unless o.name
register o, @emitter.scalar(o.name, nil, '!ruby/class', false, false, Nodes::Scalar::SINGLE_QUOTED)
end
No documentation available
See also
#visit_BigDecimal
#visit_Complex
#visit_BasicObject
#visit_Date
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1