From: "trans. (T. Onoma)" Date: 2004-10-10T02:30:51+09:00 Subject: Re: Range behavior (Re: [RCR] New [] Semantics) On Saturday 09 October 2004 01:14 pm, James Edward Gray II wrote: | On Oct 9, 2004, at 7:07 AM, Brian Candler wrote: | > I agree with Matz - Range#member? is not very useful. For the | > occasional | > case where you might need such semantics, it's easy enough to code up | > your | > own object which behaves how you want. | | Or just use: | | (3..5).to_a.include?(4) Note that this won't work for Inf = 1.0/0 (3..Inf).to_a.include?(5) T.