A static node representing an `@extend` directive.
@see Sass::Tree
The parsed selector after interpolation has been resolved. Only set once {Tree::Visitors::Perform} has been run.
@return [Selector::CommaSequence]
The CSS selector to extend, interspersed with {Sass::Script::Tree::Node}s representing `#{}`-interpolation.
@return [Array<String, Sass::Script::Tree::Node>]
The extended selector source range.
@return [Sass::Source::Range]
@param selector [Array<String, Sass::Script::Tree::Node>]
The CSS selector to extend, interspersed with {Sass::Script::Tree::Node}s representing `#{}`-interpolation.
@param optional [Boolean] See {ExtendNode#optional?} @param #selector_source_range [Sass::Source::Range] The extended selector source range.
# File lib/sass/tree/extend_node.rb, line 36 def initialize(selector, optional, selector_source_range) @selector = selector @optional = optional @selector_source_range = selector_source_range super() end
Whether the `@extend` is allowed to match no selectors or not.
@return [Boolean]
# File lib/sass/tree/extend_node.rb, line 28 def optional?; @optional; end