Class: Sass::Tree::EachNode

Inherits:
Node
  • Object
show all
Defined in:
/home/nweiz/code/sass-site/.sass/lib/sass/tree/each_node.rb

Overview

A dynamic node representing a Sass @each loop.

See Also:

Instance Attribute Summary (collapse)

Attributes inherited from Node

#children, #filename, #has_children, #line, #options, #source_range

Instance Method Summary (collapse)

Methods inherited from Node

#<<, #==, #balance, #bubbles?, #css, #css_with_sourcemap, #deep_copy, #each, #inspect, #invisible?, #style, #to_sass, #to_scss

Constructor Details

- (EachNode) initialize(vars, list)

Returns a new instance of EachNode

Parameters:

  • vars (Array<String>)

    The names of the loop variables

  • list (Script::Tree::Node)

    The parse tree for the list



18
19
20
21
22
# File '/home/nweiz/code/sass-site/.sass/lib/sass/tree/each_node.rb', line 18

def initialize(vars, list)
  @vars = vars
  @list = list
  super()
end

Instance Attribute Details

- (Script::Tree::Node) list

The parse tree for the list.

Returns:



14
15
16
# File '/home/nweiz/code/sass-site/.sass/lib/sass/tree/each_node.rb', line 14

def list
  @list
end

- (Array<String>) vars (readonly)

The names of the loop variables.

Returns:

  • (Array<String>)


10
11
12
# File '/home/nweiz/code/sass-site/.sass/lib/sass/tree/each_node.rb', line 10

def vars
  @vars
end