lib/sass/tree/node.rb in haml-2.0.8 vs lib/sass/tree/node.rb in haml-2.0.9
- old
+ new
@@ -15,9 +15,13 @@
raise Sass::SyntaxError.new(msg, child.line)
end
@children << child
end
+ def ==(other)
+ self.class == other.class && other.children == children
+ end
+
def to_s
result = String.new
children.each do |child|
if child.is_a? AttrNode
raise SyntaxError.new('Attributes aren\'t allowed at the root of a document.', child.line)