On Tue, 2007-02-20 at 22:47 +0900, Daniel Finnie wrote:
> That seems to be what facet/range/within does now.

It's implementation is rather odd, though.

Here's what I'd like to have instead:

  class Range
    def span? other
      include? other.first and
      other.last <= (other.exclude_end? ? last.succ : last)
    end
  end


Cheers,
Daniel