Ruby 3.3 Introduces Range#overlap? method
Compare two ranges and see if they overlap each other with the Ruby overlap? method. It returns true if two ranges overlap each other.
https://blog.saeloun.com/2023/12/11/ruby-3-3-introduces-range-overlap/
ruby #ruby3.3 #range #overlap #rails
Post a comment