Can someone please explain this behavior in ruby (1.8.6p111):

>> ("2"..."8").to_a
=> ["2", "3", "4", "5", "6", "7"]
>> ("2".."8").to_a
=> ["2", "3", "4", "5", "6", "7", "8"]
>> ("2".."9").to_a
=> ["2", "3", "4", "5", "6", "7", "8", "9"]
>> ("2".."10").to_a
=> []
>> ("2".."11").to_a
=> []
>> ("1".."11").to_a
=> ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11"]


Cheers,
Scott
-- 
Posted via http://www.ruby-forum.com/.