On this page
Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class · Ruby 3.4
Prism::OrNode
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](github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression).
left or right ^^^^ 1 || 2 ^
Read
Represents the right side of the expression.
left || right
^^^^^
1 or 2
^