class Sass::Script::Node
Use {#perform} to evaluate a parse tree.
The abstract superclass for SassScript parse tree nodes.
def _perform(environment)
- 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
-
(Array
-)
def children Sass::Util.abstract(self) end
def context=(context)
- See: #context -
Parameters:
-
context
(Symbol
) --
def context=(context) @context = context children.each {|c| c.context = context} end
def dasherize(s, opts)
def dasherize(s, opts) if opts[:dasherize] s.gsub(/_/,'-') else s end end
def initialize
def initialize @context = :default end
def options=(options)
-
options
({Symbol => Object}
) -- The options
def options=(options) @options = options children.each {|c| c.options = options} end
def perform(environment)
-
(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 = {})
-
(String)
-
def to_sass(opts = {}) Sass::Util.abstract(self) end