Class: Sass::Script::Node

Inherits:
Object show all
Defined in:
lib/sass/script/node.rb

Overview

The abstract superclass for SassScript parse tree nodes.

Use #perform to evaluate a parse tree.

Direct Known Subclasses

Funcall, Literal, Operation, UnaryOperation, Variable

Instance Method Summary collapse

Instance Method Details

#perform(environment) ⇒ Literal

Evaluates the node.

Parameters:

  • environment (Sass::Environment)

    The environment in which to evaluate the SassScript

Returns:

  • (Literal)

    The SassScript object that is the value of the SassScript

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/sass/script/node.rb', line 10

def perform(environment)
  raise NotImplementedError.new("All subclasses of Sass::Script::Node must override #perform.")
end