Class: Sass::Tree::ForNode

Inherits:
Node show all
Defined in:
lib/sass/tree/for_node.rb

Overview

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

See Also:

Instance Attribute Summary

Attributes inherited from Node

#children, #filename, #line, #options

Instance Method Summary collapse

Methods inherited from Node

#<<, #==, #invisible?, #last, #perform, #render, #style, #to_s, #to_sass

Constructor Details

#initialize(var, from, to, exclusive) ⇒ ForNode

Returns a new instance of ForNode.

Parameters:

  • var (String)

    The name of the loop variable

  • from (Script::Node)

    The parse tree for the initial expression

  • to (Script::Node)

    The parse tree for the final expression

  • exclusive (Boolean)

    Whether to include ‘to` in the loop or stop just before



13
14
15
16
17
18
19
# File 'lib/sass/tree/for_node.rb', line 13

def initialize(var, from, to, exclusive)
  @var = var
  @from = from
  @to = to
  @exclusive = exclusive
  super()
end