Class: Wunderbar::CommentNode
- Inherits:
-
Object
- Object
- Wunderbar::CommentNode
- Defined in:
- lib/wunderbar/node.rb
Instance Method Summary collapse
-
#initialize(text) ⇒ CommentNode
constructor
A new instance of CommentNode.
- #serialize(options, result, indent) ⇒ Object
Constructor Details
#initialize(text) ⇒ CommentNode
137 138 139 |
# File 'lib/wunderbar/node.rb', line 137 def initialize(text) @text = text end |
Instance Method Details
#serialize(options, result, indent) ⇒ Object
141 142 143 144 |
# File 'lib/wunderbar/node.rb', line 141 def serialize(, result, indent) result << "#{indent}<!-- #{@text} -->" result end |