We don't want to confuse it with #end, #last, and #max (though I think these are already deceptive and confusing). Suggestions: - Range#last_in_range - Range#last_inside - Range#last_from_each - Range#max_in_range - Range#max_inside - Range#biggest_in_range . . . Just some thoughts. I was trying to convey that this is *inside* the range, and not an endpoint *outside* the range. Anything else would be confusing, I think. Chris ----- Original Message ----- From: "Robert Hahn" <rhahn / tenletters.com> I suggest Range#endpoint. -rh On Tuesday, February 11, 2003, at 01:12 PM, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: Range#length?" > on 03/02/12, "Chris Pine" <nemo / hellotree.com> writes: > > |Well, it's a shame that something wasn't put in to refer to the last > actual > |element in the range. That's actually all I want. As I said, #end, > #last, > |and #max all return `99' for both 3..99 and 3...99. > | > |Oh, well. Nothing a good ``last - (exclude_end? ? 1 : 0)'' can't > handle. > > Do you think of a good name for it? I'm glad to add a method if > you have a good name. > > matz. > > --- Robert Hahn, Senior Web Developer, Quarry Integrated Communications