Class: Less::Node::Expression

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

Instance Method Summary collapse

Instance Method Details

#to_sass_tree



233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/sass/less.rb', line 233

def to_sass_tree
  if first.is_a?(Array)
    val = map {|e| _to_sass_tree(e)}.inject(nil) do |e, i|
      next i unless e
      Sass::Script::Operation.new(e, i, :comma)
    end
  else
    val = _to_sass_tree(self)
  end
  val.options = {}
  val
end