summaryrefslogtreecommitdiff
path: root/include/ruby/internal
diff options
context:
space:
mode:
authorShouichi Kamiya <shouichi.kamiya@gmail.com>2023-08-18 10:30:57 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-09-16 14:57:19 +0900
commite9b503f1bb9692eda1d1f55f62c19d861b88a0d5 (patch)
tree8c3a734105021eea0f5235a844e8b93dccaa3d27 /include/ruby/internal
parent7d08dbd015a16c27f2d9c77751e80fa6efba2d7a (diff)
[Feature #19839] Add Range#overlap?
Add a method that returns true if two range overlap, otherwise false. ``` (0..10).overlap?(5..15) #=> true (0..10).overlap?(20..30) #=> false ```
Diffstat (limited to 'include/ruby/internal')
0 files changed, 0 insertions, 0 deletions