Class: XmlUtils::ChildNode

Inherits:
Node
  • Object
show all
Defined in:
lib/xmlutils/node.rb

Direct Known Subclasses

Comment, DocType, Element, ProcessingInstruction, Text

Instance Attribute Summary

Attributes inherited from Node

#parent

Instance Method Summary collapse

Methods inherited from Node

#deep_clone, #document, #each, #initialize, #next_sibling, #node_type, #previous_sibling, #remove, #root, #to_s

Constructor Details

This class inherits a constructor from XmlUtils::Node

Instance Method Details

#write(output, indent = 0) ⇒ Object



96
97
98
99
# File 'lib/xmlutils/node.rb', line 96

def write(output, indent = 0)
  output << '  ' * indent
  write_content(output, indent)
end

#write_content(output, indent) ⇒ Object

Raises:

  • (NotImplementedError)


101
102
103
# File 'lib/xmlutils/node.rb', line 101

def write_content(output, indent)
  raise NotImplementedError
end