Mega Code Archive

 
Categories / Ruby / Statement
 

Iterating Through Blocks

# Starting with zero, the times method iterates value times. 10.times { |i| print i, " " }