Class: Sass::Tree::EachNode
Overview
A dynamic node representing a Sass @each
loop.
Instance Attribute Summary collapse
-
#list
The parse tree for the list.
-
#var ⇒ String
readonly
The name of the loop variable.
Attributes inherited from Node
#children, #filename, #has_children, #line, #options
Instance Method Summary collapse
-
#initialize(var, list) ⇒ EachNode
constructor
A new instance of EachNode.
Methods inherited from Node
#<<, #==, #balance, #deep_copy, #do_extend, #each, #invisible?, #style, #to_s, #to_sass, #to_scss
Constructor Details
#initialize(var, list) ⇒ EachNode
Returns a new instance of EachNode.
18 19 20 21 22 |
# File 'lib/sass/tree/each_node.rb', line 18
def initialize(var, list)
@var = var
@list = list
super()
end
|
Instance Attribute Details
#list
The parse tree for the list.
14 15 16 |
# File 'lib/sass/tree/each_node.rb', line 14
def list
@list
end
|
#var ⇒ String (readonly)
The name of the loop variable.
10 11 12 |
# File 'lib/sass/tree/each_node.rb', line 10
def var
@var
end
|