Skip to content
On this page
class · Ruby 4.0

Prism::OrNode

< Prism::Node 13 instance methods 2 class methods

Represents the use of the || operator or the or keyword.

left or right
^^^^^^^^^^^^^

Class methods 2

Instance methods 13

Attributes
Read

Represents the left side of the expression. It can be any non-void expression.

left or right
^^^^

1 || 2
^
Read

Represents the right side of the expression.

left || right
        ^^^^^

1 or 2
     ^