If I have two ranges that overlap:
x = 1..10 y = 5..15
When I say:
puts x.include? y
the output is:
Some helpful enumerable methods:
# x is a 'subset' of y x.all?{|n| y.include? n} # x and y overlap x.any?{|n| y.include? n} # x and y do not overlap x.none?{|n| y.include? n} # x and y overlap one time x.one?{|n| y.include? n}