Class: Rind::Comment
- Inherits:
-
Object
- Object
- Rind::Comment
- Includes:
- Equality, Manipulate, Traverse, Xpath
- Defined in:
- lib/rind/nodes.rb
Instance Attribute Summary
Attributes included from Traverse
Instance Method Summary collapse
-
#initialize(content) ⇒ Comment
constructor
Create a comment with
content
holding the character data of the comment. - #to_s ⇒ Object
Methods included from Xpath
Methods included from Traverse
#ancestors, #descendants, #down, #next, #next_siblings, #prev, #prev_siblings, #siblings, #up
Methods included from Manipulate
#insert_after, #insert_before, #remove
Methods included from Equality
Constructor Details
#initialize(content) ⇒ Comment
Create a comment with content
holding the character data of the comment.
46 47 48 |
# File 'lib/rind/nodes.rb', line 46 def initialize(content) @content = content end |
Instance Method Details
#to_s ⇒ Object
50 51 52 |
# File 'lib/rind/nodes.rb', line 50 def to_s "<!--#{@content}-->" end |