method

overlaps?

Importance_1
v2.3.8 - Show latest stable - 0 notes - Class: ActiveSupport::CoreExtensions::Range::Overlaps
overlaps?(other) public

Compare two ranges and see if they overlap eachother

 (1..5).overlaps?(4..6) # => true
 (1..5).overlaps?(7..9) # => false
Show source
Register or log in to add new notes.