Method: Sass::Script::Tree::StringInterpolation#type

Defined in:
lib/sass/script/tree/string_interpolation.rb

#typeSymbol

Whether this is a CSS string or a CSS identifier. The difference is that strings are written with double-quotes, while identifiers aren't.

String interpolations are only ever identifiers if they're quote-like functions such as url().

Returns:

  • (Symbol)

    :string or :identifier



23
24
25
# File 'lib/sass/script/tree/string_interpolation.rb', line 23

def type
  @before.value.type
end