I created the "Inject" module as shown in Programming Ruby, p102-103 and
included it in the Range class. When I try to get the sum of a range (ie
(1..4).sum), it just spits out 1..4 and then an error:

undefined method "sum" for nil (NameError)

It works fine for arrays when included in class Array. What have I missed?
Thanks.

Jim