To create a range, use the .. operator. For example, here's how you might create the range 1 to 4:
my_range = 1..4 puts my_range