Class: Wunderbar::CommentNode

Inherits:
Object
  • Object
show all
Defined in:
lib/wunderbar/node.rb

Instance Method Summary collapse

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(options, result, indent)
  result << "#{indent}<!-- #{@text} -->"
  result
end