Skip to content
On this page
class · Ruby 4.0

Prism::CapturePatternNode

< Prism::Node 13 instance methods 2 class methods

Represents assigning to a local variable in pattern matching.

foo => [bar => baz]
       ^^^^^^^^^^^^

Class methods 2

Instance methods 13

Attributes
Read

Represents the target of the capture.

foo => bar
^^^
Read

Represents the value to capture.

foo => bar
       ^^^