From: Robert Retzbach Date: 2006-01-15T03:55:56+09:00 Subject: Re: Range#member? Oddity James Edward Gray II schrieb: > I'm not understanding what I am seeing here. Can anyone please > explain why the last line of this session gives *false* as an answer? > > >> range = ("1".."10") > => "1".."10" > >> range.to_a > => ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] > >> range.member?("1") > => true > >> range.member?("2") > => false > > James Edward Gray II > > > I don't know why to_a is working here. I know that a range from '1' to '10' could be like you described, but it doesn't make a logical sense I think. like ('a'..'ah') what should that be? [a-255.chr] and all a[0.chr-255.chr]? This is what I think, of course. Dunno if it makes sense :> MfG Retze