Class | Sass::Script::Tree::StringInterpolation |
In: |
lib/sass/script/tree/string_interpolation.rb
|
Parent: | Node |
A SassScript object representing `#{}` interpolation within a string.
@see Interpolation
after | [R] |
@return [StringInterpolation, Literal]
The string literal or string interpolation before this interpolation. |
before | [R] | @return [Literal] The string literal before this interpolation. |
mid | [R] | @return [Node] The SassScript within the interpolation |
Interpolation in a string is of the form `"before #{mid} after"`, where `before` and `after` may include more interpolation.
@param before [StringInterpolation, Literal] See {StringInterpolation#before} @param mid [Node] See {StringInterpolation#mid} @param after [Literal] See {StringInterpolation#after}
Returns the three components of the interpolation, `before`, `mid`, and `after`.
@return [Array<Node>] @see initialize @see Node#children
Evaluates the interpolation.
@param environment [Sass::Environment] The environment in which to evaluate the SassScript @return [Sass::Script::Value::String]
The SassScript string that is the value of the interpolation