Class: Sass::Tree::EachNode
- Inherits:
-  Node - Object
- Node
- Sass::Tree::EachNode
 
- Defined in:
- /Users/ceppstei/Projects/sass-lang/.sass/lib/sass/tree/each_node.rb
Overview
A dynamic node representing a Sass @each loop.
Instance Attribute Summary (collapse)
-   - (Script::Tree::Node) list   The parse tree for the list. 
-   - (Array<String>) vars   readonly The names of the loop variables. 
Attributes inherited from Node
#children, #filename, #has_children, #line, #options, #source_range
Instance Method Summary (collapse)
-   - (EachNode) initialize(vars, list)   constructor A new instance of EachNode. 
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
| 18 19 20 21 22 | # File '/Users/ceppstei/Projects/sass-lang/.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.
| 14 15 16 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/tree/each_node.rb', line 14
def list
  @list
end | 
- (Array<String>) vars (readonly)
The names of the loop variables.
| 10 11 12 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/tree/each_node.rb', line 10
def vars
  @vars
end |