Method: Date#next

Defined in:
lib/edtf/date.rb

#next(n = 1) ⇒ Object

Returns an array of the next n days, months, or years depending on the current Date/Time’s precision.



238
239
240
# File 'lib/edtf/date.rb', line 238

def next(n = 1)
  1.upto(n).map { |by| advance(PRECISIONS[precision] => by) }
end