lib/less/tree.rb in cloudhead-less-0.8.7 vs lib/less/tree.rb in cloudhead-less-0.8.8
- old
+ new
@@ -67,10 +67,10 @@
end
#
# Convert the tree to css, using full paths
#
- def to_css chain = :desc, css = []
+ def to_css chain, css = []
self.traverse :branch do |path, node|
properties = node.inject("") do |s, (k, v)|
v.is_a?(String) ? (s + "#{k}: #{CGI.unescape(v)}; ") : s # Add the property to the list
end
css << path * ( chain == :desc ? ' ' : ' > ') + " { " + properties + "}" # Add the rule-set to the CSS
\ No newline at end of file