irb(main):001:0> foo = 1 .. 10 => 1..10 irb(main):002:0> foo.each {|x| print x } 12345678910=> 1..10