On this page
Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class · Ruby 3.4
Prism::ForNode
Represents the use of the for keyword.
for i in a end ^^^^^^^^^^^^^^
Class methods 2
Instance methods 22
#===
#accept
#child_nodes
#comment_targets
#compact_child_nodes
#copy
#deconstruct
#deconstruct_keys
#do_keyword
#do_keyword_loc
#end_keyword
#end_keyword_loc
#for_keyword
#for_keyword_loc
#in_keyword
#in_keyword_loc
#inspect
#save_do_keyword_loc
#save_end_keyword_loc
#save_for_keyword_loc
#save_in_keyword_loc
#type
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