Class: Sass::Tree::EachNode
- Inherits:
-
Node
- Object
- Node
- Sass::Tree::EachNode
- Defined in:
- /var/www/sass-pages/.sass/lib/sass/tree/each_node.rb
Overview
A dynamic node representing a Sass @each loop.
Instance Attribute Summary
- - list The parse tree for the list.
- - (String) var readonly The name of the loop variable.
Instance Method Summary
- - (EachNode) initialize(var, list) constructor A new instance of EachNode.
Methods inherited from Node
#<<, #==, #balance, #deep_copy, #do_extend, #each, #inspect, #invisible?, #style, #to_s, #to_sass, #to_scss
Constructor Details
- (EachNode) initialize(var, list)
A new instance of EachNode
18 19 20 21 22 |
# File '/var/www/sass-pages/.sass/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 '/var/www/sass-pages/.sass/lib/sass/tree/each_node.rb', line 14
def list
@list
end
|
- (String) var (readonly)
The name of the loop variable.
10 11 12 |
# File '/var/www/sass-pages/.sass/lib/sass/tree/each_node.rb', line 10
def var
@var
end
|