James Edward Gray II wrote: > 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 In short: Don't do this. 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") Hal