class XML::DOM::EntityReference
Class XML::DOM::EntityReference
¶ ↑
superclass¶ ↑
Class XML::DOM::EntityReference
¶ ↑
superclass¶ ↑
Public Class Methods
Source
# File lib/xml/dom/core.rb, line 3028 def initialize(name, *children) super(*children) raise "parameter error" if !name @name = name.freeze end
Class Methods¶ ↑
Calls superclass method
XML::DOM::Node::new
Public Instance Methods
Source
# File lib/xml/dom/core.rb, line 3094 def _checkNode(node) unless node.nodeType == ELEMENT_NODE || node.nodeType == PROCESSING_INSTRUCTION_NODE || node.nodeType == COMMENT_NODE || node.nodeType == TEXT_NODE || node.nodeType == CDATA_SECTION_NODE || node.nodeType == ENTITY_REFERENCE_NODE raise DOMException.new(DOMException::HIERARCHY_REQUEST_ERR) end end
Source
# File lib/xml/dom/core.rb, line 3090 def cloneNode(deep = true) super(deep, @name) end
Calls superclass method
XML::DOM::Node#cloneNode
Source
# File lib/xml/dom/core.rb, line 3073 def dump(depth = 0) print ' ' * depth * 2 print "&#{@name}{\n" @children.each do |child| child.dump(depth + 1) end if @children print ' ' * depth * 2 print "}\n" end