class

Crystal::Macros::StringInterpolation

Inherits Crystal::Macros::ASTNode

An interpolated string like "Hello, #{name}!".

Instance methods

expressions

Returns a list of expressions that comprise the interpolated string.

These alternate between StringLiteral for the plaintext parts and ASTNodes of any type for the interpolated expressions.

Source