Skip to content
On this page
class · Ruby 4.0

Prism::CaseNode

< Prism::Node 17 instance methods 2 class methods

Represents the use of a case statement.

case true
when false
end
^^^^^^^^^^

Class methods 2

Instance methods 17

Attributes
Read

Represents the conditions of the case statement.

case true; when false; end
           ^^^^^^^^^^

Represents the else clause of the case statement.

case true; when false; else; end
                       ^^^^
Read

Represents the predicate of the case statement. This can be either nil or any non-void expressions.

case true; when false; end
     ^^^^