Class: Range

Inherits:
Object show all
Defined in:
lib/homeschool.rb

Instance Method Summary collapse

Instance Method Details

#intersect?(other) ⇒ Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/homeschool.rb', line 19

def intersect?(other)
  include?(other.first) || include?(other.last)
end