Dale Martenson wrote:

> puts (1..4).sum
> 
> This seems to work with Ruby version 1.7.2 (Windows), but not with version
> 1.6.7 (Cygwin).
> 

Try:

   puts((1..4).sum)

I guess 1.6.7 is interpreting your line as

   (puts (1..4)).sum