Class Sass::Tree::DirectiveNode
In: lib/sass/tree/directive_node.rb
Parent: Node

A static node representing an unproccessed Sass `@`-directive. Directives known to Sass, like `@for` and `@debug`, are handled by their own nodes; only CSS directives like `@media` and `@font-face` become {DirectiveNode}s.

`@import` and `@charset` are special cases; they become {ImportNode}s and {CharsetNode}s, respectively.

@see Sass::Tree

Methods

_to_s   new   to_src  

Attributes

value  [RW]  The text of the directive, `@` and all.

@return [String]

Public Class methods

@param value [String] See \{value}

Protected Instance methods

Computes the CSS for the directive.

@param tabs [Fixnum] The level of indentation for the CSS @return [String] The resulting CSS

[Validate]