lib/wunderbar/node.rb in wunderbar-0.22.4 vs lib/wunderbar/node.rb in wunderbar-0.23.0
- old
+ new
@@ -146,21 +146,21 @@
def preserve_spaces?
false
end
end
- class CommentNode
+ class CommentNode < Node
def initialize(text)
@text = text
end
def serialize(options, result, indent)
result << "#{indent}<!-- #{@text} -->"
result
end
end
- class DocTypeNode
+ class DocTypeNode < Node
def initialize(*args)
@declare = args.shift
@name = args.shift
end