Class: Sass::Script::Node
Overview
The abstract superclass for SassScript parse tree nodes.
Use #perform to evaluate a parse tree.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ {Symbol => Object}
The options hash for this node.
Instance Method Summary collapse
-
#children ⇒ Array<Node>
Returns all child nodes of this node.
-
#perform(environment) ⇒ Literal
Evaluates the node.
Instance Attribute Details
#options ⇒ {Symbol => Object}
The options hash for this node.
9 10 11 |
# File 'lib/sass/script/node.rb', line 9
def options
@options
end
|
Instance Method Details
#children ⇒ Array<Node>
Returns all child nodes of this node.
32 33 34 |
# File 'lib/sass/script/node.rb', line 32
def children
raise NotImplementedError.new("All subclasses of Sass::Script::Node must override #children.")
end
|
#perform(environment) ⇒ Literal
Evaluates the node.
25 26 27 |
# File 'lib/sass/script/node.rb', line 25
def perform(environment)
raise NotImplementedError.new("All subclasses of Sass::Script::Node must override #perform.")
end
|