Class: Canon::Xml::Nodes::CommentNode
- Inherits:
-
Canon::Xml::Node
- Object
- Canon::Xml::Node
- Canon::Xml::Nodes::CommentNode
- Defined in:
- lib/canon/xml/nodes/comment_node.rb
Overview
Comment node in the XPath data model
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Canon::Xml::Node
Instance Method Summary collapse
-
#initialize(value:) ⇒ CommentNode
constructor
A new instance of CommentNode.
- #name ⇒ Object
- #node_type ⇒ Object
Methods inherited from Canon::Xml::Node
#add_child, #in_node_set=, #in_node_set?
Constructor Details
#initialize(value:) ⇒ CommentNode
Returns a new instance of CommentNode.
12 13 14 15 |
# File 'lib/canon/xml/nodes/comment_node.rb', line 12 def initialize(value:) super() @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
10 11 12 |
# File 'lib/canon/xml/nodes/comment_node.rb', line 10 def value @value end |
Instance Method Details
#name ⇒ Object
17 18 19 |
# File 'lib/canon/xml/nodes/comment_node.rb', line 17 def name "comment" end |
#node_type ⇒ Object
21 22 23 |
# File 'lib/canon/xml/nodes/comment_node.rb', line 21 def node_type :comment end |