On this page
class · Ruby 4.0
Prism::CaseMatchNode
Represents the use of a case statement for pattern matching.
case true in false end ^^^^^^^^^
Class methods 2
Instance methods 17
Attributes
Read
Represents the conditions of the case match.
case true; in false; end
^^^^^^^^
Read
Represents the else clause of the case match.
case true; in false; else; end
^^^^
Read
Represents the predicate of the case match. This can be either nil or any non-void expressions.
case true; in false; end ^^^^