Class: VCDOM::XMLLS::XMLSerializer
- Inherits:
-
Object
- Object
- VCDOM::XMLLS::XMLSerializer
- Defined in:
- lib/vcdom/xml_ls/xml_serializer.rb
Instance Method Summary collapse
Instance Method Details
#_write_to_string_attrs(node, str) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/vcdom/xml_ls/xml_serializer.rb', line 36 def _write_to_string_attrs( node, str ) node.each_attr_node do |n| str << " " str << n.name str << "=\"" n.each_child_node do |c| case c.node_type when Node::TEXT_NODE then str << c.data else raise "SORRY... UNSUPORTED" end end str << "\"" end end |
#write_to_string(node) ⇒ Object
8 9 10 11 12 |
# File 'lib/vcdom/xml_ls/xml_serializer.rb', line 8 def write_to_string( node ) str = String.new _write_to_string( node, str ) str end |