mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
14 lines
502 B
Ruby
14 lines
502 B
Ruby
module Sass::Script
|
|
# The abstract superclass for SassScript parse tree nodes.
|
|
#
|
|
# Use \{#perform} to evaluate a parse tree.
|
|
class Node
|
|
# Evaluates the node.
|
|
#
|
|
# @param environment [Sass::Environment] The environment in which to evaluate the SassScript
|
|
# @return [Literal] The SassScript object that is the value of the SassScript
|
|
def perform(environment)
|
|
raise NotImplementedError.new("All subclasses of Sass::Script::Node must override #perform.")
|
|
end
|
|
end
|
|
end
|