From: Pit Capitain Date: 2006-01-14T17:46:16+09:00 Subject: Re: Range#member? Oddity Christer Nilsson schrieb: > Hal Fulton wrote: >>String ranges are very weird. They don't obey the rule that >>x.succ > x. >> >>Since "2" > "10", "2" is considered outside the range entirely. >> >>If you really want to do this kind of thing, say >>("1".."10").to_a.member?("2") > > > If the two strings have the same length, the weirdness disappears. Very good point! Regards, Pit