lib/vendor/sugar.js
function(range) {
      return new DateRange(
        this.start < range.start ? this.start : range.start,
        this.end   > range.end   ? this.end   : range.end
      );
    }
function(range) {
      return new DateRange(
        this.start < range.start ? this.start : range.start,
        this.end   > range.end   ? this.end   : range.end
      );
    }
function ( range ) { return new DateRange ( this . start < range . start ? this . start : range . start , this . end > range . end ? this . end : range . end ) ; }
*
@method union(<range>)
@returns DateRange
@short Returns a new DateRange with the earliest starting point as its start, and the latest ending point as its end. If the two ranges do not intersect this will effectively remove the "gap" between them.
@example

Date.range('2003=01', '2005-01').union(Date.range('2004-01', '2006-01')) -> Jan 1, 2003..Jan 1, 2006

*
* @method union ( <range > ) @returns DateRange @short Returns a new DateRange with the earliest starting point as its start and the latest ending point as its end . If the two ranges do not intersect this will effectively remove the gap between them . @example