Class Sass::Script::Interpolation
In: lib/sass/script/interpolation.rb
Parent: Node

A SassScript object representing `#{}` interpolation outside a string.

@see StringInterpolation

Methods

_perform   children   inspect   new   to_sass  

Public Class methods

Interpolation in a property is of the form `before #{mid} after`.

@param before [Node] The SassScript before the interpolation @param mid [Node] The SassScript within the interpolation @param after [Node] The SassScript after the interpolation @param wb [Boolean] Whether there was whitespace between `before` and `#{` @param wa [Boolean] Whether there was whitespace between `}` and `after` @param originally_text [Boolean]

  Whether the original format of the interpolation was plain text,
  not an interpolation.
  This is used when converting back to SassScript.

Public Instance methods

Returns the three components of the interpolation, `before`, `mid`, and `after`.

@return [Array<Node>] @see initialize @see Node#children

@return [String] A human-readable s-expression representation of the interpolation

Protected Instance methods

Evaluates the interpolation.

@param environment [Sass::Environment] The environment in which to evaluate the SassScript @return [Sass::Script::String] The SassScript string that is the value of the interpolation

[Validate]