From: Meinrad Recheis Date: 2006-04-13T22:20:26+09:00 Subject: Range#size dear list, does anyone object to adding the method :size to class Range? class Range def size max-min+1 end end i think it's useful. maybe others too. i'd like to see it added to the core. here is the test for Range#size in case it's really added. def test_range_size assert_equal 1, (1..1).size assert_equal 2, (1..2).size assert_equal 3, (1..3).size assert_equal 0, (1..1).size assert_equal 1, (1...2).size end what do you think? -- henon