Sha256: 11f3080efec0629063186d51385407ff0bddf62b6e7ebd49b458416c67b52059

Contents?: true

Size: 756 Bytes

Versions: 43

Compression:

Stored size: 756 Bytes

Contents

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::Node]
      attr_reader :expr

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

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

Version data entries

43 entries across 43 versions & 3 rubygems

Version Path
haml_ejs-0.0.1 vendor/sass/lib/sass/tree/variable_node.rb
haml-3.1.3 vendor/sass/lib/sass/tree/variable_node.rb
haml-3.2.0.alpha.8 vendor/sass/lib/sass/tree/variable_node.rb
sass-3.1.3 lib/sass/tree/variable_node.rb
sass-3.2.0.alpha.9 lib/sass/tree/variable_node.rb
sass-3.2.0.alpha.8 lib/sass/tree/variable_node.rb
haml-3.2.0.alpha.5 vendor/sass/lib/sass/tree/variable_node.rb
haml-3.2.0.alpha.4 vendor/sass/lib/sass/tree/variable_node.rb
haml-3.1.2 vendor/sass/lib/sass/tree/variable_node.rb
sass-3.1.2 lib/sass/tree/variable_node.rb
sass-3.2.0.alpha.7 lib/sass/tree/variable_node.rb
sass-3.2.0.alpha.6 lib/sass/tree/variable_node.rb
haml-3.2.0.alpha.3 vendor/sass/lib/sass/tree/variable_node.rb
sass-3.2.0.alpha.4 lib/sass/tree/variable_node.rb
sass-3.2.0.alpha.3 lib/sass/tree/variable_node.rb
sass-3.1.1 lib/sass/tree/variable_node.rb
haml-3.2.0.alpha.2 vendor/sass/lib/sass/tree/variable_node.rb
haml-3.1.1 vendor/sass/lib/sass/tree/variable_node.rb
sass-3.1.0 lib/sass/tree/variable_node.rb
sass-3.1.0.alpha.263 lib/sass/tree/variable_node.rb