The abstract superclass for SassScript parse tree nodes.
Use {#perform} to evaluate a parse tree.
Returns all child nodes of this node.
@return [Array<Node>]
# File lib/sass/script/tree/node.rb, line 59 def children Sass::Util.abstract(self) end
Returns a deep clone of this node. The child nodes are cloned, but options are not.
@return [Node]
# File lib/sass/script/tree/node.rb, line 74 def deep_copy Sass::Util.abstract(self) end
Sets the options hash for this node, as well as for all child nodes. See {file:SASS_REFERENCE.md#sass_options the Sass options documentation}.
@param options [{Symbol => Object}] The options
# File lib/sass/script/tree/node.rb, line 31 def options=(options) @options = options children.each do |c| if c.is_a? Hash c.values.each {|v| v.options = options} else c.options = options end end end
Evaluates the node.
{#perform} shouldn't be overridden directly; instead, override {#_perform}.
@param environment [Sass::Environment] The environment in which to evaluate the SassScript @return [Sass::Script::Value] The SassScript object that is the value of the SassScript
# File lib/sass/script/tree/node.rb, line 49 def perform(environment) _perform(environment) rescue Sass::SyntaxError => e e.modify_backtrace(:line => line) raise e end
Evaluates this node. Note that all {Sass::Script::Value} objects created within this method should have their {#options} attribute set, probably via {#opts}.
@param environment [Sass::Environment] The environment in which to evaluate the SassScript @return [Sass::Script::Value] The SassScript object that is the value of the SassScript @see perform
# File lib/sass/script/tree/node.rb, line 96 def _perform(environment) Sass::Util.abstract(self) end
Generated with the Darkfish Rdoc Generator 2.