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::WhileNode

< Prism::Node 20 instance methods 2 class methods

Represents the use of the while keyword, either in the block form or the modifier form.

bar while foo
^^^^^^^^^^^^^

while foo do bar end
^^^^^^^^^^^^^^^^^^^^

Class methods 2

Instance methods 20

Attributes
Read

attr_reader predicate: Prism::node

Read

attr_reader statements: StatementsNode?