From: daz Date: 2005-11-25T04:32:27+09:00 Subject: Re: [BUG] string range membership Ara.T.Howard wrote: > On Thu, 24 Nov 2005, Yukihiro Matsumoto wrote: > > > > > All we need is making up good names for each functionality. > > Range#contains? > > ?? > I'm sure there was an earlier post with an excellent synopsis on ranges which stated that a Range /doesn't/ "contain"? Yeh, here it is ... from you ;)) http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/167200 "not quite - we have a string range that __produces__ 27 elements. it does not 'have' or 'contain' them. it merely suggests this set as it's current thought" (SCNR ;) Would something like Range#covers? be more apt? (meaning within the bounds). Oh, pooh, that's got an 's' on the end as well :( daz