Class: Sass::Tree::ExtendNode

Inherits:
Node
  • Object
show all
Defined in:
lib/sass/tree/extend_node.rb

Overview

A static node reprenting an @extend directive.

See Also:

Instance Attribute Summary collapse

Attributes inherited from Node

#children, #filename, #has_children, #line, #options

Instance Method Summary collapse

Methods inherited from Node

#<<, #==, #balance, #deep_copy, #do_extend, #each, #invisible?, #style, #to_s, #to_sass, #to_scss

Constructor Details

#initialize(selector) ⇒ ExtendNode

Returns a new instance of ExtendNode.

Parameters:



24
25
26
27
# File 'lib/sass/tree/extend_node.rb', line 24

def initialize(selector)
  @selector = selector
  super()
end

Instance Attribute Details

#resolved_selectorSelector::CommaSequence

The parsed selector after interpolation has been resolved. Only set once Visitors::Perform has been run.



12
13
14
# File 'lib/sass/tree/extend_node.rb', line 12

def resolved_selector
  @resolved_selector
end

#selectorArray<String, Sass::Script::Node>

The CSS selector to extend, interspersed with Script::Nodes representing #{}-interpolation.

Returns:



18
19
20
# File 'lib/sass/tree/extend_node.rb', line 18

def selector
  @selector
end