Class Sass::Tree::AtRootNode
In: lib/sass/tree/at_root_node.rb
Parent: Node

A dynamic node representing an `@at-root` directive.

An `@at-root` directive with a selector is converted to an \{AtRootNode} containing a \{RuleNode} at parse time.

@see Sass::Tree

Methods

Attributes

group_end  [RW]  Whether the last child of this node should be considered the end of a group.

@return [Boolean]

query  [RW]  The query for this node (e.g. `(without: media)`), interspersed with {Sass::Script::Tree::Node}s representing `#{}`-interpolation. Any adjacent strings will be merged together.

This will be nil if the directive didn‘t have a query. In this case, {resolved_type} will automatically be set to `:without` and {resolved_rule} will automatically be set to `["rule"]`.

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

resolved_type  [RW]  The resolved type of this directive. `:with` or `:without`.

@return [Symbol]

resolved_value  [RW]  The resolved value of this directive — a list of directives to either include or exclude.

@return [Array<String>]

tabs  [RW]  The number of additional tabs that the contents of this node should be indented.

@return [Number]

Public Class methods

Public Instance methods

@see Node#bubbles?

Returns whether or not the given directive is excluded by this node. `directive` may be "rule", which indicates whether normal CSS rules should be excluded.

@param directive [String] @return [Boolean]

Returns whether the given node is excluded by this node.

@param node [Sass::Tree::Node] @return [Boolean]

[Validate]