Class Sass::Tree::RootNode
In: lib/sass/tree/root_node.rb
Parent: Node

A static node that is the root node of the Sass document.

Methods

_to_s   cssize   cssize!   invalid_child?   new   perform   perform!   render   to_s   to_sass   to_scss   to_src  

Attributes

template  [R]  The Sass template from which this node was created

@param template [String]

Public Class methods

@param template [String] The Sass template from which this node was created

Public Instance methods

Like {Node#cssize}, except that this method will create its own `extends` map if necessary, and it returns that map along with the cssized tree.

@return [(Tree::Node, Haml::Util::SubsetMap)] The resulting tree of static nodes

  *and* the extensions defined for this tree

Runs the dynamic Sass code and computes the CSS for the tree.

@see perform @see to_s

Converts a node to Sass code that will generate it.

@param opts [{Symbol => Object}] An options hash (see {Sass::CSS#initialize}) @return [String] The Sass code corresponding to the node

Converts a node to SCSS code that will generate it.

@param opts [{Symbol => Object}] An options hash (see {Sass::CSS#initialize}) @return [String] The SCSS code corresponding to the node

Protected Instance methods

Computes the CSS corresponding to this Sass tree.

@param args [Array] ignored @return [String] The resulting CSS @see Sass::Tree

In Ruby 1.8, ensures that there‘s only one @charset directive and that it‘s at the top of the document.

@see Node#cssize

Returns an error message if the given child node is invalid, and false otherwise.

Only property nodes are invalid at root level.

@see Node#invalid_child?

[Validate]