Skip to content
On this page
class · Ruby 4.0

Prism::InterpolatedMatchLastLineNode

< Prism::Node 27 instance methods 2 class methods

Represents a regular expression literal that contains interpolation that is being used in the predicate of a conditional to implicitly match against the last line read by an IO object.

if /foo #{bar} baz/ then end
   ^^^^^^^^^^^^^^^^

Class methods 2

Instance methods 27

Attributes
Read

attr_reader parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode]