Skip to content
On this page
class · Ruby 4.0

Prism::BackReferenceReadNode

< Prism::Node 10 instance methods 2 class methods

Represents reading a reference to a field in the previous match.

$'
^^

Class methods 2

Instance methods 10

Attributes
Read

The name of the back-reference variable, including the leading $.

Example
$& # name `:$&`

$+ # name `:$+`