[ruby] How to create an integer-for-loop in Ruby?