The abstract superclass of all parse-tree nodes.
| Use Case | Command | Description |
|---|---|---|
| Create a new node | Sass::Tree::Node.new | Instantiate a new parse-tree node |
| Add a child node | node << child | Append a child node to the children list |
| Get children | node.children | Return array of child nodes |
| Convert to CSS | node.css | Generate CSS string from the node |
| Deep copy | node.deep_copy | Recursively copy the node tree |
| Set options | node.options = {} | Assign parser options to the node |
inheritednew<<==balancebubbles?childrenchildren=csscss_with_sourcemapdeep_copyeachfilenamehas_childreninspectinvisible?lineoptionsoptions=source_rangestyleto_sassto_scsshas_children (attr_accessor)line (attr_accessor)source_range (attr_accessor)children (attr_reader)options (attr_reader)filename (attr_writer)Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-30 01:25 @216.73.217.106
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format