Class: Range
- Inherits:
-
Object
- Object
- Range
- Defined in:
- lib/core_ext.rb
Instance Method Summary collapse
Instance Method Details
#overlaps?(other) ⇒ Boolean
65 66 67 68 |
# File 'lib/core_ext.rb', line 65 def overlaps?(other) max >= other.min && min <= other.min || other.max >= min && other.min <= min end |