Class: Sass::Tree::ExtendNode
- Inherits:
-
Node
- Object
- Node
- Sass::Tree::ExtendNode
- Defined in:
- /var/www/sass-pages/.sass/lib/sass/tree/extend_node.rb
Overview
A static node reprenting an @extend directive.
Instance Attribute Summary
- - (Selector::CommaSequence) resolved_selector The parsed selector after interpolation has been resolved.
-
- (Array<String, Sass::Script::Node>) selector
The CSS selector to extend, interspersed with Sass::Script::Nodes representing
#{}-interpolation.
Instance Method Summary
- - (ExtendNode) initialize(selector, optional) constructor A new instance of ExtendNode.
-
- (Boolean) optional?
Whether the
@extendis allowed to match no selectors or not.
Methods inherited from Node
#<<, #==, #balance, #bubbles?, #deep_copy, #each, #inspect, #invisible?, #style, #to_s, #to_sass, #to_scss
Constructor Details
- (ExtendNode) initialize(selector, optional)
A new instance of ExtendNode
30 31 32 33 34 |
# File '/var/www/sass-pages/.sass/lib/sass/tree/extend_node.rb', line 30
def initialize(selector, optional)
@selector = selector
@optional = optional
super()
end
|
Instance Attribute Details
- (Selector::CommaSequence) resolved_selector
The parsed selector after interpolation has been resolved. Only set once Tree::Visitors::Perform has been run.
12 13 14 |
# File '/var/www/sass-pages/.sass/lib/sass/tree/extend_node.rb', line 12
def resolved_selector
@resolved_selector
end
|
- (Array<String, Sass::Script::Node>) selector
The CSS selector to extend, interspersed with Sass::Script::Nodes representing #{}-interpolation.
18 19 20 |
# File '/var/www/sass-pages/.sass/lib/sass/tree/extend_node.rb', line 18
def selector
@selector
end
|
Instance Method Details
- (Boolean) optional?
Whether the @extend is allowed to match no selectors or not.
23 |
# File '/var/www/sass-pages/.sass/lib/sass/tree/extend_node.rb', line 23
def optional?; @optional end
|