Class: Less::Node::Mixin::Def

Inherits:
Object
  • Object
show all
Defined in:
lib/sass/less.rb

Instance Method Summary collapse

Instance Method Details

#to_sass_tree



200
201
202
203
204
205
206
207
208
# File 'lib/sass/less.rb', line 200

def to_sass_tree
  return if hide_in_sass
  mixin = Sass::Tree::MixinDefNode.new(name, @params.map do |v|
      v.value.flatten!
      [Sass::Script::Variable.new(v), v.value.to_sass_tree]
    end)
  rules.each {|r| mixin << r.to_sass_tree}
  mixin
end