From: Steve Klabnik Date: 2009-12-24T11:47:09+09:00 Subject: Re: why this works not right --001485f1ec2a6aa343047b7074db Content-Type: text/plain; charset=ISO-8859-1 1..10 is a range, while [1..10] is an array with one element, a range from 1..10. You can think of 1..10 as (1..10) and [1..10] as [(1..10)] I am 95% sure that this is correct, someone please correct me if I'm wrong. irb seems to support this: > def one_to_ten > 1..10 > end => nil > one_to_ten.class => Range > [1..10].class => Array --001485f1ec2a6aa343047b7074db--