> if __FILE__ == $0
>  a = (1..3).to_enum + (10..12).to_enum + (17..20).to_enum
>  a.each { |i| puts i }
> end

So you expect this to output
28
31
35
?