class Range

Public Instance Methods

&(other)
Alias for: intersection
intersection(other) click to toggle source
# File lib/yol_common/range.rb, line 4
def intersection(other)
  return nil if (self.max < other.begin or other.max < self.begin) 
  [self.begin,other.begin].max..[self.max,other.max].min
end
Also aliased as: &