lib/edtf/interval.rb
# call-seq:
#     interval.first     -> Date or nil
#     interval.first(n)  -> Array
#
# Returns the first date in the interval, or the first n dates.


Returns the first date in the interval, or the first n dates.
Returns the first date in the interval or the first n dates .
def first(n = 1)
      if n > 1
        (ds = Array(min)).empty? ? ds : ds.concat(ds[0].next(n - 1))
      else
        min
      end
    end
def first ( n = 1 ) if n > 1 ( ds = Array ( min ) ) . empty? ? ds : ds . concat ( ds [ 0 ] . next ( n - 1 ) ) else min end end
call-seq:
interval.first     -> Date or nil
interval.first(n)  -> Array
call - seq : interval . first - > Date or nil interval . first ( n ) - > Array
n