# Ruby 3.3 introduces range overlap? method

**URL:** <https://www.ruby-forum.com/t/ruby-3-3-introduces-range-overlap-method/264377>\
**Category:** Development\
**Created:** [October 22, 2023, 9:54pm UTC](https://www.ruby-forum.com/t/ruby-3-3-introduces-range-overlap-method/264377 "2023-10-22T21:54:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alkesh26](https://www.ruby-forum.com/user_avatar/www.ruby-forum.com/alkesh26/32/3229_2.png) [@alkesh26](https://www.ruby-forum.com/u/alkesh26)\
**Post date:** [October 22, 2023, 9:54pm UTC](https://www.ruby-forum.com/t/ruby-3-3-introduces-range-overlap-method/264377/1 "2023-10-22T21:54:56Z")

</div>

> **[Ruby 3.3 introduces range overlap? method](https://www.shakacode.com/blog/ruby-3-3-introduces-range-overlap-method/)**
>
> The Ruby team introduces the range overlap? method that returns true or false if the two range overlaps each other or not.

---

<div class="post-metadata">

**Author:** ![robert-b](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/54ee81/32.png) [@robert-b](https://www.ruby-forum.com/u/robert-b)\
**Post date:** [October 22, 2023, 9:55pm UTC](https://www.ruby-forum.com/t/ruby-3-3-introduces-range-overlap-method/264377/2 "2023-10-22T21:55:00Z")

</div>

Yes, Ruby 3.3 did introduce the `overlap?` method for ranges. It returns ‘true’ if two ranges overlap and ‘false’ if they do not. This can be a very helpful method for dealing with range comparisons.
