jruby/src/main/resources/gem/gems/haml-3.1.1/vendor/sass/lib/sass/tree/visitors/perform.rb
# Runs the child nodes once for each value in the list.
Runs the child nodes once for each value in the list.
Runs the child nodes once for each value in the list .
def visit_each(node)
    list = node.list.perform(@environment)
    with_environment Sass::Environment.new(@environment) do
      list.to_a.map do |v|
        @environment.set_local_var(node.var, v)
        node.children.map {|c| visit(c)}
      end.flatten
    end
  end
def visit_each ( node ) list = node . list . perform ( @environment ) with_environment Sass :: Environment . new ( @environment ) do list . to_a . map do | v | @environment . set_local_var ( node . var , v ) node . children . map { | c | visit ( c ) } end . flatten end end
Runs the child nodes once for each value in the list.
Runs the child nodes once for each value in the list .
node