From: James Edward Gray II Date: 2006-04-13T22:26:04+09:00 Subject: Re: Range#size On Apr 13, 2006, at 8:20 AM, Meinrad Recheis wrote: > dear list, > > does anyone object to adding the method :size to class Range? > > class Range > def size > max-min+1 > end > end The problem with it is that it adds method dependancies to Range: >> class Range >> def size; max - min + 1 end >> end => nil >> ("AA".."BB").size NoMethodError: undefined method `-' for "BB":String from (irb):2:in `size' from (irb):4 from :0 James Edward Gray II