Method: Sass::Script::Value::String#check_deprecated_interp

Defined in:
lib/sass/script/value/string.rb

#check_deprecated_interp

Prints a warning if this string was created using potentially-deprecated interpolation.

[View source]

123
124
125
126
127
128
129
130
131
132
# File 'lib/sass/script/value/string.rb', line 123

def check_deprecated_interp
  return unless @deprecated_interp_equivalent

  @@interpolation_deprecation.warn(source_range.file, source_range.start_pos.line, <<WARNING)
\#{} interpolation near operators will be simplified in a future version of Sass.
To preserve the current behavior, use quotes:

  #{@deprecated_interp_equivalent}
WARNING
end