class Sass::Tree::ForNode - sass-3.2.19 Documentation

# class Sass::Tree::ForNode

A dynamic node representing a Sass `@for` loop.

@see Sass::Tree

### Attributes

exclusive[R]

Whether to include `to` in the loop or stop just before. @return [Boolean]

from[RW]

The parse tree for the initial expression. @return [Script::Node]

to[RW]

The parse tree for the final expression. @return [Script::Node]

var[R]

The name of the loop variable. @return [String]

### Public Class Methods

new(var, from, to, exclusive) click to toggle source

@param var [String] See {#var} @param from [Script::Node] See {#from} @param to [Script::Node] See {#to} @param exclusive [Boolean] See {#exclusive}

Calls superclass method

    # File lib/sass/tree/for_node.rb, line 28
    def initialize(var, from, to, exclusive)
      @var = var
      @from = from
      @to = to
      @exclusive = exclusive
      super()
    end