Class: Range
Instance Method Summary collapse
Instance Method Details
#overlap?(other) ⇒ Boolean
3 4 5 |
# File 'lib/ruco/core_ext/range.rb', line 3 def overlap?(other) (first <= other.last) and (other.first <= last) end |
3 4 5 |
# File 'lib/ruco/core_ext/range.rb', line 3 def overlap?(other) (first <= other.last) and (other.first <= last) end |