Ruby 3.3 introduces range overlap? method | Shakacode
Rails has a built-in method called #overlaps?
that allows you to compare two ranges to see if they overlap each other. This method needed to be included in Ruby.
A range is a data type that represents a sequence of values. A sequence can be any data type, including numbers, characters and dates. A range is represented using the ..
and ...
operators.
.
Ruby 3.3 introduces range overlap? method | Shakacode #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/ruby-3-3-introduces-range-overlap-method-shakacode