Skip to content
On this page

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class · Ruby 3.4

Prism::AlternationPatternNode

< Prism::Node 13 instance methods 2 class methods

Represents an alternation pattern in pattern matching.

foo => bar | baz
       ^^^^^^^^^

Class methods 2

Instance methods 13

Attributes
Read

Represents the left side of the expression.

foo => bar | baz
       ^^^
Read

Represents the right side of the expression.

foo => bar | baz
             ^^^