class Sass::Tree::VariableNode
A dynamic node representing a variable definition.
@see Sass::Tree
Attributes
expr[RW]
The parse tree for the variable value. @return [Script::Node]
guarded[R]
Whether this is a guarded variable assignment (‘!default`). @return [Boolean]
name[R]
The name of the variable. @return [String]
Public Class Methods
new(name, expr, guarded)
click to toggle source
@param name [String] The name of the variable @param expr [Script::Node] See {#expr} @param guarded [Boolean] See {#guarded}
Calls superclass method
Sass::Tree::Node::new
# File lib/sass/tree/variable_node.rb, line 22 def initialize(name, expr, guarded) @name = name @expr = expr @guarded = guarded super() end