From: google@... (Tom Payne) Date: 2003-02-12T19:22:48+09:00 Subject: Re: Range#length? "Chris Pine" wrote in message news:<345501c2d1ea$798afee0$6401a8c0@MELONBALLER>... > Oh, well. Nothing a good ``last - (exclude_end? ? 1 : 0)'' can't handle. How about: class Range def count n = 0 each { n += 1 } n end end It does return the correct answer for all ranges (if you're patient). No, I'm not serious! T