From: "Tario C." Date: 2013-06-08T11:46:55+09:00 Subject: Write a method intersection that takes two ranges How do I write a method intersection(range1, range2) that takes two ranges (a pair of start and stop coordinates on a line) and returns (a) an array of subranges of range1 which are not contained in range2, (b) an array of subranges of range2 that are not contained in range1, and (c) the subrange common to both range1 and range2? Thank you -- Posted via http://www.ruby-forum.com/.