Class: Sass::Tree::ForNode
- Inherits:
-
Node
- Object
- Node
- Sass::Tree::ForNode
- Defined in:
- /var/www/sass-pages/.sass/lib/sass/tree/for_node.rb
Overview
A dynamic node representing a Sass @for loop.
Instance Attribute Summary
-
- (Boolean) exclusive
readonly
Whether to include
toin the loop or stop just before. - - (Script::Node) from The parse tree for the initial expression.
- - (Script::Node) to The parse tree for the final expression.
- - (String) var readonly The name of the loop variable.
Instance Method Summary
- - (ForNode) initialize(var, from, to, exclusive) constructor A new instance of ForNode.
Methods inherited from Node
#<<, #==, #balance, #deep_copy, #do_extend, #each, #inspect, #invisible?, #style, #to_s, #to_sass, #to_scss
Constructor Details
- (ForNode) initialize(var, from, to, exclusive)
A new instance of ForNode
28 29 30 31 32 33 34 |
# File '/var/www/sass-pages/.sass/lib/sass/tree/for_node.rb', line 28
def initialize(var, from, to, exclusive)
@var = var
@from = from
@to = to
@exclusive = exclusive
super()
end
|
Instance Attribute Details
- (Boolean) exclusive (readonly)
Whether to include to in the loop or stop just before.
22 23 24 |
# File '/var/www/sass-pages/.sass/lib/sass/tree/for_node.rb', line 22
def exclusive
@exclusive
end
|
- (Script::Node) from
The parse tree for the initial expression.
14 15 16 |
# File '/var/www/sass-pages/.sass/lib/sass/tree/for_node.rb', line 14
def from
@from
end
|
- (Script::Node) to
The parse tree for the final expression.
18 19 20 |
# File '/var/www/sass-pages/.sass/lib/sass/tree/for_node.rb', line 18
def to
@to
end
|
- (String) var (readonly)
The name of the loop variable.
10 11 12 |
# File '/var/www/sass-pages/.sass/lib/sass/tree/for_node.rb', line 10
def var
@var
end
|