Directive nodes need to_sass too.

This commit is contained in:
Chris Eppstein 2010-01-28 00:01:23 -08:00
parent 20e24dadf7
commit 3dfd369e88

View File

@ -100,6 +100,11 @@ module Sass
"!#{@name} #{"||" if @guarded}= #{expr.to_sass}"
end
end
class DirectiveNode < Node
def to_sass
"#{self.value}\n #{children_to_sass}\n"
end
end
class MixinDefNode < Node
attr_accessor :name unless method_defined? :name
attr_accessor :args unless method_defined? :args