vendor/plugins/haml/lib/sass/tree/attr_node.rb in radiant-0.7.2 vs vendor/plugins/haml/lib/sass/tree/attr_node.rb in radiant-0.8.0
- old
+ new
@@ -7,9 +7,13 @@
def initialize(name, value, style)
@name = name
super(value, style)
end
+ def ==(other)
+ self.class == other.class && name == other.name && super
+ end
+
def to_s(tabs, parent_name = nil)
if value[-1] == ?;
raise Sass::SyntaxError.new("Invalid attribute: #{declaration.dump} (This isn't CSS!).", @line)
end
real_name = name