Class: FIRM::Serializable::YAML::NoClassYAMLTree
- Inherits:
-
Psych::Visitors::YAMLTree
- Object
- Psych::Visitors::YAMLTree
- FIRM::Serializable::YAML::NoClassYAMLTree
- Defined in:
- lib/firm/serializer/yaml.rb
Overview
Derived Psych YAMLTree class to emit simple strings for Class instances
Instance Method Summary collapse
Instance Method Details
#visit_Class(o) ⇒ Object
80 81 82 83 |
# File 'lib/firm/serializer/yaml.rb', line 80 def visit_Class(o) raise TypeError, "can't dump anonymous module: #{o}" unless o.name visit_String(o.name) end |
#visit_Module(o) ⇒ Object
85 86 87 88 |
# File 'lib/firm/serializer/yaml.rb', line 85 def visit_Module(o) raise TypeError, "can't dump anonymous class: #{o}" unless o.name visit_String(o.name) end |