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
Returns a new instance of CommentNode.
152 153 154 |
# File 'lib/wunderbar/node.rb', line 152 def initialize(text) @text = text end |
Instance Method Details
#serialize(options, result, indent) ⇒ Object
156 157 158 159 |
# File 'lib/wunderbar/node.rb', line 156 def serialize(, result, indent) result << "#{indent}<!-- #{@text} -->" result end |