Class | Sass::Tree::RuleNode |
In: |
lib/sass/tree/rule_node.rb
|
Parent: | Node |
A static node representing a CSS rule.
@see Sass::Tree
PARENT | = | '&' | The character used to include the parent selector |
group_end | [RW] |
Whether or not this rule is the last rule in a nested group. This is only
set in a CSS tree.
@return [Boolean] |
parsed_rules | [RW] |
The CSS selector for this rule, without any
unresolved interpolation but with parent references still intact.
It‘s only guaranteed to be set once {Tree::Visitors::Perform} has been run, but
it may be set before then for optimization reasons.
@return [Selector::CommaSequence] |
resolved_rules | [RW] |
The CSS selector for this rule, without any
unresolved interpolation or parent references. It‘s only set once {Tree::Visitors::Perform} has been run.
@return [Selector::CommaSequence] |
rule | [RW] |
The CSS selector for this rule, interspersed with
{Sass::Script::Tree::Node}s
representing `#{}`-interpolation. Any adjacent strings will be merged
together.
@return [Array<String, Sass::Script::Tree::Node>] |
selector_source_range | [RW] | The entire selector source range for this rule. @return [Sass::Source::Range] |
stack_trace | [RW] |
The stack trace. This is only readable in a CSS
tree as it is written during the perform step and only when the
:trace_selectors option is set.
@return [String] |
tabs | [RW] |
How deep this rule is indented relative to a base-level rule. This is only
greater than 0 in the case that:
@return [Integer] |
@param rule [Array<String, Sass::Script::Tree::Node>, Sass::Selector::CommaSequence]
The CSS rule, either unparsed or parsed.
@param selector_source_range [Sass::Source::Range]
Compares the contents of two rules.
@param other [Object] The object to compare with @return [Boolean] Whether or not this node and the other object
are the same
A hash that will be associated with this rule in the CSS document if the {file:SASS_REFERENCE.md#debug_info-option `:debug_info` option} is enabled. This data is used by e.g. [the FireSass Firebug extension](addons.mozilla.org/en-US/firefox/addon/103988).
@return [{to_s => to_s}]