Class: VCDOM::MiniDOM::Comment

Inherits:
CharacterData show all
Defined in:
lib/vcdom/minidom/comment.rb

Constant Summary

Constants inherited from Node

Node::ATTRIBUTE_NODE, Node::CDATA_SECTION_NODE, Node::COMMENT_NODE, Node::DOCUMENT_FRAGMENT_NODE, Node::DOCUMENT_NODE, Node::DOCUMENT_TYPE_NODE, Node::ELEMENT_NODE, Node::ENTITY_NODE, Node::ENTITY_REFERENCE_NODE, Node::NOTATION_NODE, Node::PROCESSING_INSTRUCTION_NODE, Node::TEXT_NODE

Instance Method Summary collapse

Methods inherited from CharacterData

#append_data, #data, #data=, #delete_data, #insert_data, #length, #replace_data, #substring_data

Methods included from ModChildNode

#init_mod_child_node, #next_sibling, #parent_node, #previous_sibling

Methods inherited from Node

#append_child, #attributes, #child_nodes, #first_child, #has_attributes, #has_child_nodes, #insert_before, #last_child, #local_name, #namespace_uri, #next_sibling, #node_value, #node_value=, #owner_document, #parent_node, #prefix, #prefix=, #previous_sibling, #remove_child, #replace_child, #text_content, #text_content=

Constructor Details

#initialize(owner_document, value) ⇒ Comment

Returns a new instance of Comment.



28
29
30
# File 'lib/vcdom/minidom/comment.rb', line 28

def initialize( owner_document, value )
  super( owner_document, value )
end

Instance Method Details

#node_nameObject

nodeName of type DOMString, readonly

The name of this node, depending on its type; see the table above.

 Interface             nodeName              
 ------------------------------------------------------------
 Comment               "#comment"


24
25
26
# File 'lib/vcdom/minidom/comment.rb', line 24

def node_name
  return "#comment"
end

#node_typeObject

nodeType of type unsigned short, readonly

A code representing the type of the underlying object, as defined above.


14
15
16
# File 'lib/vcdom/minidom/comment.rb', line 14

def node_type
  return Node::COMMENT_NODE
end