Methods

Class/Module Index [+]

Quicksearch

Sass::Tree::ExtendNode

A static node reprenting an `@extend` directive.

@see Sass::Tree

Attributes

resolved_selector[RW]

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

@return [Selector::CommaSequence]

selector[RW]

The CSS selector to extend, interspersed with {Sass::Script::Node}s representing `#{}`-interpolation.

@return [Array<String, Sass::Script::Node>]

Public Class Methods

new(selector, optional) click to toggle source

@param selector [Array<String, Sass::Script::Node>]

The CSS selector to extend,
interspersed with {Sass::Script::Node}s
representing `#{}`-interpolation.

@param optional [Boolean] See {#optional}

# File lib/sass/tree/extend_node.rb, line 30
def initialize(selector, optional)
  @selector = selector
  @optional = optional
  super()
end

Public Instance Methods

optional?() click to toggle source

Whether the `@extend` is allowed to match no selectors or not.

@return [Boolean]

# File lib/sass/tree/extend_node.rb, line 23
def optional?; @optional; end

[Validate]

Generated with the Darkfish Rdoc Generator 2.