Class Sass::Script::CssVariableWarning
In: lib/sass/script/css_variable_warning.rb
Parent: Object

An object tracking whether a warning has been emitted for a given script tree.

This is shared among all objects in a script tree. Whenever any of those objects encounters a situation in which it wouldn‘t produce semantically identical CSS to its input, it calls \{warn!\}. The first time \{warn!} is called for a given warning object, it prints a deprecation warning.

Methods

new   value=   warn!  

Public Class methods

Public Instance methods

Sets the root of the script tree that this warning refers to.

@param value [Sass::Script::Tree::Node]

The first time this is called, it prints a deprecation warning.

This may be called before \{value=}. If it is, the warning is emitted once the script tree is set.

[Validate]