for variable [, variable ...] in expression do # code end Example for i in 0..5 puts "Local variable is $(i)" end