Skip to content
On this page
class · Ruby 4.0

Prism::ForNode

< Prism::Node 22 instance methods 2 class methods

Represents the use of the for keyword.

for i in a end
^^^^^^^^^^^^^^

Class methods 2

Instance methods 22

Attributes
Read

The collection to iterate over.

for i in a end
         ^
Read

The index expression for for loops.

for i in a end
    ^
Read

Represents the body of statements to execute for each iteration of the loop.

for i in a
  foo(i)
  ^^^^^^
end