Module: Less::Expression4

Defined in:
lib/less/engine/parser.rb

Instance Method Summary collapse

Instance Method Details

#allObject



1361
1362
1363
# File 'lib/less/engine/parser.rb', line 1361

def all
  [entity] + tail.elements.map {|i| [i.operator, i.entity] }.flatten.compact
end

#build(env) ⇒ Object



1353
1354
1355
1356
1357
1358
1359
# File 'lib/less/engine/parser.rb', line 1353

def build env 
  exp = all.map do |e|
    e.method(:build).arity.zero?? 
      e.build : e.build(env) if e.respond_to? :build
  end.dissolve
  exp.is_a?(Array) ? Node::Expression.new(exp) : exp
end