All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gems.sass-3.5.5.lib.sass.tree.variable_node.rb Maven / Gradle / Ivy

There is a newer version: 3.7.2
Show newest version
module Sass
  module Tree
    # A dynamic node representing a variable definition.
    #
    # @see Sass::Tree
    class VariableNode < Node
      # The name of the variable.
      # @return [String]
      attr_reader :name

      # The parse tree for the variable value.
      # @return [Script::Tree::Node]
      attr_accessor :expr

      # Whether this is a guarded variable assignment (`!default`).
      # @return [Boolean]
      attr_reader :guarded

      # Whether this is a global variable assignment (`!global`).
      # @return [Boolean]
      attr_reader :global

      # @param name [String] The name of the variable
      # @param expr [Script::Tree::Node] See \{#expr}
      # @param guarded [Boolean] See \{#guarded}
      # @param global [Boolean] See \{#global}
      def initialize(name, expr, guarded, global)
        @name = name
        @expr = expr
        @guarded = guarded
        @global = global
        super()
      end
    end
  end
end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy