Class: Sass::Tree::EachNode
- Inherits:
-
Node
- Object
- Node
- Sass::Tree::EachNode
- Defined in:
- .ruby-sass/lib/sass/tree/each_node.rb
Overview
A dynamic node representing a Sass `@each` loop.
Instance Attribute Summary (collapse)
-
#list ⇒ Script::Tree::Node
The parse tree for the list.
-
#vars ⇒ Array<String>
readonly
The names of the loop variables.
Attributes inherited from Node
#children, #filename, #has_children, #line, #options, #source_range
Instance Method Summary (collapse)
-
#initialize(vars, list) ⇒ EachNode
constructor
A new instance of EachNode.
Methods inherited from Node
#<<, #==, #bubbles?, #css, #css_with_sourcemap, #deep_copy, #each, inherited, #inspect, #invisible?, #style, #to_sass, #to_scss
Constructor Details
#initialize(vars, list) ⇒ EachNode
Returns a new instance of EachNode
18 19 20 21 22 |
# File '.ruby-sass/lib/sass/tree/each_node.rb', line 18 def initialize(vars, list) @vars = vars @list = list super() end |
Constructor Details
#initialize(vars, list) ⇒ EachNode
Returns a new instance of EachNode
18 19 20 21 22 |
# File '.ruby-sass/lib/sass/tree/each_node.rb', line 18 def initialize(vars, list) @vars = vars @list = list super() end |
Instance Attribute Details
#list ⇒ Script::Tree::Node
The parse tree for the list.
14 15 16 |
# File '.ruby-sass/lib/sass/tree/each_node.rb', line 14 def list @list end |
#vars ⇒ Array<String> (readonly)
The names of the loop variables.
10 11 12 |
# File '.ruby-sass/lib/sass/tree/each_node.rb', line 10 def vars @vars end |