class Sass::Script::Node

Use {#perform} to evaluate a parse tree.
The abstract superclass for SassScript parse tree nodes.

def _perform(environment)

Other tags:
    See: #perform -

Returns:
  • (Literal) - The SassScript object that is the value of the SassScript

Parameters:
  • environment (Sass::Environment) -- The environment in which to evaluate the SassScript
def _perform(environment)
  Sass::Util.abstract(self)
end

def children

Returns:
  • (Array) -
def children
  Sass::Util.abstract(self)
end

def context=(context)

Other tags:
    See: #context -

Parameters:
  • context (Symbol) --
def context=(context)
  @context = context
  children.each {|c| c.context = context}
end

def dasherize(s, opts)

Converts underscores to dashes if the :dasherize option is set.
def dasherize(s, opts)
  if opts[:dasherize]
    s.gsub(/_/,'-')
  else
    s
  end
end

def initialize

Creates a new script node.
def initialize
  @context = :default
end

def options=(options)

Parameters:
  • options ({Symbol => Object}) -- The options
def options=(options)
  @options = options
  children.each {|c| c.options = options}
end

def perform(environment)

Returns:
  • (Literal) - The SassScript object that is the value of the SassScript

Parameters:
  • environment (Sass::Environment) -- The environment in which to evaluate the SassScript
def perform(environment)
  _perform(environment)
rescue Sass::SyntaxError => e
  e.modify_backtrace(:line => line)
  raise e
end

def to_sass(opts = {})

Returns:
  • (String) -
def to_sass(opts = {})
  Sass::Util.abstract(self)
end